]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
intval for type assurance
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 13 Oct 2015 23:16:22 +0000 (01:16 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 13 Oct 2015 23:16:22 +0000 (01:16 +0200)
classes/Notice.php

index 71c3690a0c24529eab934f5c3f0730230603032e..1b6edb4cd34e659f7bc715d7443ad968741a85d3 100644 (file)
@@ -792,7 +792,7 @@ class Notice extends Managed_DataObject
             // FIXME: ...what about remote nonpublic? Hmmm. That is, if we sandbox remote profiles...
             $stored->is_local = Notice::LOCAL_NONPUBLIC;
         } else {
-            $stored->is_local = $is_local;
+            $stored->is_local = intval($is_local);
         }
 
         if (!$stored->isLocal()) {