Merge pull request #8562 from annando/issue-8557
Issue 8557: We have to fetch only a single row
This commit is contained in:
commit
4991fa4e27
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class Register
|
|||
*/
|
||||
public static function getPendingForUser(int $uid)
|
||||
{
|
||||
return DBA::selectToArray('pending-view', [], ['uid' => $uid]);
|
||||
return DBA::selectFirst('pending-view', [], ['uid' => $uid, 'self' => true]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue