incorrectly used empty() instead of isset() for a variable that could be 0

This commit is contained in:
Evan Prodromou 2010-01-02 08:36:47 -10:00
parent d2bbf65f19
commit 52fbd10162

View File

@ -214,7 +214,7 @@ class Notice extends Memcached_DataObject
extract($options); extract($options);
} }
if (empty($is_local)) { if (!isset($is_local)) {
$is_local = Notice::LOCAL_PUBLIC; $is_local = Notice::LOCAL_PUBLIC;
} }