]> git.mxchange.org Git - friendica.git/blobdiff - mod/unfollow.php
Rename selectOne to selectFirst
[friendica.git] / mod / unfollow.php
index 51439a9d0e80528ac808a32e6cdb354cb10d24d2..a68c4de90ef2a6ae57ba6ca7ae1aa9118618cf2f 100644 (file)
@@ -26,7 +26,7 @@ function unfollow_post(App $a) {
        $condition = ["`uid` = ? AND `rel` = ? AND (`nurl` = ? OR `alias` = ? OR `alias` = ?) AND `network` != ?",
                        $uid, CONTACT_IS_FRIEND, normalise_link($url),
                        normalise_link($url), $url, NETWORK_STATUSNET];
-       $contact = dba::selectOne('contact', [], $condition);
+       $contact = dba::selectFirst('contact', [], $condition);
 
        if (!DBM::is_result($contact)) {
                notice(t("Contact wasn't found or can't be unfollowed."));
@@ -65,7 +65,7 @@ function unfollow_content(App $a) {
        $condition = ["`uid` = ? AND `rel` = ? AND (`nurl` = ? OR `alias` = ? OR `alias` = ?) AND `network` != ?",
                        local_user(), CONTACT_IS_FRIEND, normalise_link($url),
                        normalise_link($url), $url, NETWORK_STATUSNET];
-       $contact = dba::selectOne('contact', ['url', 'network', 'addr', 'name'], $condition);
+       $contact = dba::selectFirst('contact', ['url', 'network', 'addr', 'name'], $condition);
 
        if (!DBM::is_result($contact)) {
                notice(t("You aren't a friend of this contact.").EOL);