Don't need :user_no set on INSERT.

This commit is contained in:
Andrew McMillan 2010-03-18 21:51:44 +13:00
parent c4541c56f0
commit abdfad3193

View File

@ -113,7 +113,9 @@ function UpdateUserFromExternal( &$usr ) {
else
$type = "INSERT";
$qry = new AwlQuery( sql_from_object( $usr, $type, 'usr', "WHERE user_no= :user_no" ), array( ':user_no' => $usr->user_no) );
$params = array();
if ( $type != 'INSERT' ) $params[':user_no'] = $usr->user_no;
$qry = new AwlQuery( sql_from_object( $usr, $type, 'usr', "WHERE user_no= :user_no" ), $params );
$qry->Exec('Login',__LINE__,__FILE__);
/**