Strictify Notice->isPublic()
This commit is contained in:
parent
f522c08438
commit
49a91885c9
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user