Merge pull request #8562 from annando/issue-8557

Issue 8557: We have to fetch only a single row
This commit is contained in:
Hypolite Petovan 2020-04-28 21:44:23 -04:00 committed by GitHub
commit 4991fa4e27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]);
}
/**