]> git.mxchange.org Git - friendica.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Tue, 20 Dec 2016 15:28:23 +0000 (16:28 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 20 Dec 2016 15:28:23 +0000 (16:28 +0100)
- reverted dbm::is_result() to count()

Signed-off-by: Roland Häder <roland@mxchange.org>
mod/dfrn_confirm.php

index 6d97899afff3d627544c7517857299082cd7fcd8..2eca28b95dc0b2b9033c3b0ef00c4f046c93efa4 100644 (file)
@@ -584,7 +584,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                        dbesc($decrypted_source_url),
                        intval($local_uid)
                );
-               if(! dbm::is_result($ret)) {
+               if(! count($ret)) {
                        if(strstr($decrypted_source_url,'http:'))
                                $newurl = str_replace('http:','https:',$decrypted_source_url);
                        else
@@ -594,7 +594,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                                dbesc($newurl),
                                intval($local_uid)
                        );
-                       if(! dbm::is_result($ret)) {
+                       if(! count($ret)) {
                                // this is either a bogus confirmation (?) or we deleted the original introduction.
                                $message = t('Contact record was not found for you on our site.');
                                xml_status(3,$message);