From d260808cd311d63736c4dd8fb324becfd45130cb Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 14 Oct 2015 01:16:22 +0200 Subject: [PATCH] intval for type assurance --- classes/Notice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.39.5