It has to be "selectFirst"
This commit is contained in:
parent
1f9f321d54
commit
00ef29fb97
|
@ -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