]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact/User.php
Merge pull request #10551 from annando/profiler
[friendica.git] / src / Model / Contact / User.php
index 34a3d6f3411da04a0bf30a7681cbad99caaf734d..26fd96303f6610304b3303344ce0782c15cadd84 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -39,7 +39,7 @@ class User
         */
        public static function setBlocked($cid, $uid, $blocked)
        {
-               $cdata = Contact::getPublicAndUserContacID($cid, $uid);
+               $cdata = Contact::getPublicAndUserContactID($cid, $uid);
                if (empty($cdata)) {
                        return;
                }
@@ -62,9 +62,9 @@ class User
         */
        public static function isBlocked($cid, $uid)
        {
-               $cdata = Contact::getPublicAndUserContacID($cid, $uid);
+               $cdata = Contact::getPublicAndUserContactID($cid, $uid);
                if (empty($cdata)) {
-                       return;
+                       return false;
                }
 
                $public_blocked = false;
@@ -102,7 +102,7 @@ class User
         */
        public static function setIgnored($cid, $uid, $ignored)
        {
-               $cdata = Contact::getPublicAndUserContacID($cid, $uid);
+               $cdata = Contact::getPublicAndUserContactID($cid, $uid);
                if (empty($cdata)) {
                        return;
                }
@@ -125,9 +125,9 @@ class User
         */
        public static function isIgnored($cid, $uid)
        {
-               $cdata = Contact::getPublicAndUserContacID($cid, $uid);
+               $cdata = Contact::getPublicAndUserContactID($cid, $uid);
                if (empty($cdata)) {
-                       return;
+                       return false;
                }
 
                $public_ignored = false;
@@ -165,7 +165,7 @@ class User
         */
        public static function setCollapsed($cid, $uid, $collapsed)
        {
-               $cdata = Contact::getPublicAndUserContacID($cid, $uid);
+               $cdata = Contact::getPublicAndUserContactID($cid, $uid);
                if (empty($cdata)) {
                        return;
                }
@@ -185,7 +185,7 @@ class User
         */
        public static function isCollapsed($cid, $uid)
        {
-               $cdata = Contact::getPublicAndUserContacID($cid, $uid);
+               $cdata = Contact::getPublicAndUserContactID($cid, $uid);
                if (empty($cdata)) {
                        return;
                }