Replace dba::select(limit => 1) by dba::selectOne
- Convert array declarations to new style
This commit is contained in:
@@ -32,7 +32,7 @@ function receive_post(App $a)
|
||||
}
|
||||
$guid = $a->argv[2];
|
||||
|
||||
$importer = dba::select('user', array(), array('guid' => $guid, 'account_expired' => false, 'account_removed' => false), array('limit' => 1));
|
||||
$importer = dba::selectOne('user', [], ['guid' => $guid, 'account_expired' => false, 'account_removed' => false]);
|
||||
if (!DBM::is_result($importer)) {
|
||||
http_status_exit(500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user