fix missing ARRAY() around params to dbFetchOne
This commit is contained in:
parent
5fac727c2f
commit
623837115b
|
@ -25,7 +25,7 @@ if ( !canEdit( 'System' ) && !$selfEdit )
|
|||
$view = "error";
|
||||
return;
|
||||
}
|
||||
if ( !($newUser = dbFetchOne( 'SELECT * FROM Users WHERE Id = ?', NULL, $_REQUEST['uid']) ) ); {
|
||||
if ( !($newUser = dbFetchOne( 'SELECT * FROM Users WHERE Id = ?', NULL, ARRAY($_REQUEST['uid'])) ) ); {
|
||||
$newUser = array();
|
||||
$newUser['Username'] = $SLANG['NewUser'];
|
||||
$newUser['Enabled'] = 1;
|
||||
|
|
|
@ -25,7 +25,7 @@ if ( !canEdit( 'System' ) && !$selfEdit )
|
|||
$view = "error";
|
||||
return;
|
||||
}
|
||||
if ( !($newUser = dbFetchOne( 'SELECT * FROM Users WHERE Id = ?', NULL, $_REQUEST['uid']) ) ); {
|
||||
if ( !($newUser = dbFetchOne( 'SELECT * FROM Users WHERE Id = ?', NULL, ARRAY($_REQUEST['uid'])) ) ); {
|
||||
$newUser = array();
|
||||
$newUser['Username'] = $SLANG['NewUser'];
|
||||
$newUser['Enabled'] = 1;
|
||||
|
|
Loading…
Reference in New Issue