diff --git a/buffer/buffer.php b/buffer/buffer.php index a85e843a8..932789da5 100644 --- a/buffer/buffer.php +++ b/buffer/buffer.php @@ -253,7 +253,7 @@ function buffer_send(App $a, &$b) // Dont't post if the post doesn't belong to us. // This is a check for forum postings - $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); + $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); if ($b['contact-id'] != $self['id']) { return; } diff --git a/diaspora/diaspora.php b/diaspora/diaspora.php index 6f54f4422..db4cc46e9 100644 --- a/diaspora/diaspora.php +++ b/diaspora/diaspora.php @@ -289,7 +289,7 @@ function diaspora_send(&$a,&$b) { // Dont't post if the post doesn't belong to us. // This is a check for forum postings - $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); + $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); if ($b['contact-id'] != $self['id']) { return; } diff --git a/ifttt/ifttt.php b/ifttt/ifttt.php index ad7a367b8..199aace43 100644 --- a/ifttt/ifttt.php +++ b/ifttt/ifttt.php @@ -97,7 +97,7 @@ function ifttt_post(App $a) $nickname = $a->argv[1]; - $user = dba::selectOne('user', ['uid'], ['nickname' => $nickname]); + $user = dba::selectFirst('user', ['uid'], ['nickname' => $nickname]); if (!DBM::is_result($user)) { logger('User ' . $nickname . ' not found.', LOGGER_DEBUG); return; diff --git a/libertree/libertree.php b/libertree/libertree.php index c421d0766..f5a157ec8 100644 --- a/libertree/libertree.php +++ b/libertree/libertree.php @@ -169,7 +169,7 @@ function libertree_send(&$a,&$b) { // Dont't post if the post doesn't belong to us. // This is a check for forum postings - $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); + $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); if ($b['contact-id'] != $self['id']) { return; } diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index af9321802..3f6f8a870 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -419,7 +419,7 @@ function pumpio_send(&$a,&$b) { // Dont't post if the post doesn't belong to us. // This is a check for forum postings - $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); + $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); if ($b['contact-id'] != $self['id']) { return; } diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 084b233d1..34bbf20cc 100644 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -582,7 +582,7 @@ function statusnet_post_hook(App $a, &$b) // Dont't post if the post doesn't belong to us. // This is a check for forum postings - $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); + $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); if ($b['contact-id'] != $self['id']) { return; } diff --git a/tumblr/tumblr.php b/tumblr/tumblr.php index c255f5a42..78c12a5f6 100644 --- a/tumblr/tumblr.php +++ b/tumblr/tumblr.php @@ -330,7 +330,7 @@ function tumblr_send(&$a,&$b) { // Dont't post if the post doesn't belong to us. // This is a check for forum postings - $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); + $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); if ($b['contact-id'] != $self['id']) { return; } diff --git a/twitter/twitter.php b/twitter/twitter.php index e501a3442..ccfdeb1fb 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -468,7 +468,7 @@ function twitter_post_hook(App $a, &$b) // Dont't post if the post doesn't belong to us. // This is a check for forum postings - $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); + $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); if ($b['contact-id'] != $self['id']) { return; } diff --git a/windowsphonepush/windowsphonepush.php b/windowsphonepush/windowsphonepush.php index c9d58bd7f..ca615205f 100644 --- a/windowsphonepush/windowsphonepush.php +++ b/windowsphonepush/windowsphonepush.php @@ -458,7 +458,7 @@ function windowsphonepush_login(App $a) $user_id = User::authenticate($_SERVER['PHP_AUTH_USER'], trim($_SERVER['PHP_AUTH_PW'])); if ($user_id) { - $record = dba::selectOne('user', [], ['uid' => $user_id]); + $record = dba::selectFirst('user', [], ['uid' => $user_id]); } else { logger('API_login failure: ' . print_r($_SERVER, true), LOGGER_DEBUG); header('WWW-Authenticate: Basic realm="Friendica"'); diff --git a/wppost/wppost.php b/wppost/wppost.php index 96e95979d..323fcef0c 100644 --- a/wppost/wppost.php +++ b/wppost/wppost.php @@ -205,7 +205,7 @@ function wppost_send(&$a,&$b) { // Dont't post if the post doesn't belong to us. // This is a check for forum postings - $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); + $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]); if ($b['contact-id'] != $self['id']) { return; }