fix missing ARRAY() around params to dbFetchOne

This commit is contained in:
Isaac Connor 2014-06-25 14:01:45 -04:00
parent 5fac727c2f
commit 623837115b
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;