]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/PushSubscriber.php
Replace remaining $a->isInstallMode() instances
[friendica.git] / src / Model / PushSubscriber.php
index 07963760525ab26e97c918a210d5e1bc1a970053..9680d359d09637c1007a302b46f3d36d221b4827 100644 (file)
@@ -73,7 +73,7 @@ class PushSubscriber
                if ($subscribe) {
                        // if we are just updating an old subscription, keep the
                        // old values for last_update but reset the push
-                       if (DBA::is_result($subscriber)) {
+                       if (DBA::isResult($subscriber)) {
                                $last_update = $subscriber['last_update'];
                                $push_flag = min($subscriber['push'], 1);
                        } else {
@@ -103,7 +103,7 @@ class PushSubscriber
        public static function delay($id)
        {
                $subscriber = DBA::selectFirst('push_subscriber', ['push', 'callback_url', 'renewed', 'nickname'], ['id' => $id]);
-               if (!DBA::is_result($subscriber)) {
+               if (!DBA::isResult($subscriber)) {
                        return;
                }
 
@@ -141,7 +141,7 @@ class PushSubscriber
        public static function reset($id, $last_update)
        {
                $subscriber = DBA::selectFirst('push_subscriber', ['callback_url', 'nickname'], ['id' => $id]);
-               if (!DBA::is_result($subscriber)) {
+               if (!DBA::isResult($subscriber)) {
                        return;
                }