]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
carefully compare cached settings against false for Config
authorEvan Prodromou <evan@status.net>
Mon, 4 Jan 2010 20:02:59 +0000 (10:02 -1000)
committerEvan Prodromou <evan@status.net>
Mon, 4 Jan 2010 20:02:59 +0000 (10:02 -1000)
classes/Config.php

index 390d75381ac82fb74289a91fc6a77a011d875da0..6d914ca1f6e6a39b7e87c025be556c7e9a097d42 100644 (file)
@@ -59,7 +59,7 @@ class Config extends Memcached_DataObject
 
         if (!empty($c)) {
             $settings = $c->get(common_cache_key(self::settingsKey));
-            if (!empty($settings)) {
+            if ($settings !== false) {
                 return $settings;
             }
         }