]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
incorrectly used empty() instead of isset() for a variable that could be 0
authorEvan Prodromou <evan@status.net>
Sat, 2 Jan 2010 18:36:47 +0000 (08:36 -1000)
committerEvan Prodromou <evan@status.net>
Sat, 2 Jan 2010 18:36:47 +0000 (08:36 -1000)
classes/Notice.php

index 0bb3b861c7b46b88a9f2e4b7a39ba25b74a58082..93e94230d9c5e45a640db78fa82cf5b85ef0578c 100644 (file)
@@ -214,7 +214,7 @@ class Notice extends Memcached_DataObject
             extract($options);
         }
 
-        if (empty($is_local)) {
+        if (!isset($is_local)) {
             $is_local = Notice::LOCAL_PUBLIC;
         }