mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-18 04:13:38 +00:00
Don't need :user_no set on INSERT.
This commit is contained in:
parent
c4541c56f0
commit
abdfad3193
@ -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__);
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user