Strictify Notice->isPublic()

This commit is contained in:
Mikael Nordfeldth 2016-03-24 01:54:33 +01:00
parent f522c08438
commit 49a91885c9

View 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);
}
/**