Commit 49a91885 authored by mmn's avatar mmn

Strictify Notice->isPublic()

parent f522c084
......@@ -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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment