]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Strictify Notice->isPublic()
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 24 Mar 2016 00:54:33 +0000 (01:54 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 24 Mar 2016 00:54:33 +0000 (01:54 +0100)
classes/Notice.php

index fe4cc8002667dff739cacef7c448ee1c94f4bae9..dceaf50b0dcdaff7d154975933f92584a3102905 100644 (file)
@@ -2749,10 +2749,10 @@ class Notice extends Managed_DataObject
         }
     }
 
-    function isPublic()
+    public function isPublic()
     {
-        return (($this->is_local != Notice::LOCAL_NONPUBLIC) &&
-                ($this->is_local != Notice::GATEWAY));
+        $is_local = intval($this->is_local);
+        return !($is_local === Notice::LOCAL_NONPUBLIC || $is_local === Notice::GATEWAY);
     }
 
     /**