mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:10:10 +00: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;
|
||||
|
|
|
@ -88,7 +88,7 @@ class FKOAuthDataStore extends OAuthDataStore
|
|||
*/
|
||||
public function lookup_nonce($consumer, $token, $nonce, $timestamp)
|
||||
{
|
||||
$r = dba::selectOne('tokens', ['id', 'secret'], ['client_id' => $consumer->key, 'id' => $nonce, 'expires' => $timestamp]);
|
||||
$r = dba::selectFirst('tokens', ['id', 'secret'], ['client_id' => $consumer->key, 'id' => $nonce, 'expires' => $timestamp]);
|
||||
|
||||
if (DBM::is_result($r)) {
|
||||
return new \OAuthToken($r['id'], $r['secret']);
|
||||
|
|
|
@ -406,7 +406,7 @@ class Probe
|
|||
|
||||
$condition = array('nurl' => normalise_link($data["url"]));
|
||||
|
||||
$old_fields = dba::selectOne('gcontact', $fieldnames, $condition);
|
||||
$old_fields = dba::selectFirst('gcontact', $fieldnames, $condition);
|
||||
|
||||
dba::update('gcontact', $fields, $condition, $old_fields);
|
||||
|
||||
|
@ -439,7 +439,7 @@ class Probe
|
|||
|
||||
$condition = array('nurl' => normalise_link($data["url"]), 'self' => false, 'uid' => 0);
|
||||
|
||||
$old_fields = dba::selectOne('contact', $fieldnames, $condition);
|
||||
$old_fields = dba::selectFirst('contact', $fieldnames, $condition);
|
||||
|
||||
dba::update('contact', $fields, $condition, $old_fields);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue