It has to be "selectFirst"
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user