It has to be "selectFirst"

This commit is contained in:
Michael 2020-04-29 01:40:59 +00:00
parent 1f9f321d54
commit 00ef29fb97
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class Register
*/
public static function getPendingForUser(int $uid)
{
return DBA::select('pending-view', [], ['uid' => $uid, 'self' => true]);
return DBA::selectFirst('pending-view', [], ['uid' => $uid, 'self' => true]);
}
/**