From: Mikael Nordfeldth Date: Tue, 13 Oct 2015 23:16:22 +0000 (+0200) Subject: intval for type assurance X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d260808cd311d63736c4dd8fb324becfd45130cb;p=quix0rs-gnu-social.git intval for type assurance --- diff --git a/classes/Notice.php b/classes/Notice.php index 71c3690a0c..1b6edb4cd3 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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()) {