mirror of
https://github.com/friendica/friendica
synced 2025-05-03 21:04:09 +02:00
Rename selectOne to selectFirst
This commit is contained in:
parent
c7a7658316
commit
ae66bcaff3
51 changed files with 821 additions and 821 deletions
|
@ -40,7 +40,7 @@ class FKOAuth1 extends OAuthServer
|
|||
{
|
||||
logger("FKOAuth1::loginUser $uid");
|
||||
$a = get_app();
|
||||
$record = dba::selectOne('user', [], ['uid' => $uid, 'blocked' => 0, 'account_expired' => 0, 'account_removed' => 0, 'verified' => 1]);
|
||||
$record = dba::selectFirst('user', [], ['uid' => $uid, 'blocked' => 0, 'account_expired' => 0, 'account_removed' => 0, 'verified' => 1]);
|
||||
|
||||
if (!DBM::is_result($record)) {
|
||||
logger('FKOAuth1::loginUser failure: ' . print_r($_SERVER, true), LOGGER_DEBUG);
|
||||
|
@ -63,7 +63,7 @@ class FKOAuth1 extends OAuthServer
|
|||
$a->timezone = $a->user['timezone'];
|
||||
}
|
||||
|
||||
$r = dba::selectOne('contact', [], ['uid' => $_SESSION['uid'], 'self' => 1]);
|
||||
$r = dba::selectFirst('contact', [], ['uid' => $_SESSION['uid'], 'self' => 1]);
|
||||
|
||||
if (DBM::is_result($r)) {
|
||||
$a->contact = $r;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue