intval for type assurance

This commit is contained in:
Mikael Nordfeldth 2015-10-14 01:16:22 +02:00
parent 79c40bc73b
commit d260808cd3

View File

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