It has to be "selectFirst"
This commit is contained in:
parent
1f9f321d54
commit
00ef29fb97
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue