Type-aware comparison is necessary for Notice is_local/scope

This commit is contained in:
Mikael Nordfeldth
2015-10-14 00:27:51 +02:00
parent b6aeff89c4
commit 79c40bc73b
8 changed files with 22 additions and 35 deletions

View File

@@ -96,7 +96,7 @@ class GeoURLPlugin extends Plugin
*/
function onHandleQueuedNotice(&$notice)
{
if ($notice->is_local == 1) {
if (intval($notice->is_local) === Notice::LOCAL_PUBLIC) {
$request = HTTPClient::start();