]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
common_config returns false if the config value is not set. Design::toWebColor checks...
authorAdrian Lang <mail@adrianlang.de>
Mon, 10 Aug 2009 13:01:00 +0000 (15:01 +0200)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 10 Aug 2009 20:35:09 +0000 (16:35 -0400)
classes/Design.php

index 9354bfcda8c6fab07b662521e28a8a0f5ba28218..19c9e0292494e9242702370f263b1a86df6e5ec0 100644 (file)
@@ -204,7 +204,10 @@ class Design extends Memcached_DataObject
                            'disposition');
 
             foreach ($attrs as $attr) {
-                $siteDesign->$attr = common_config('design', $attr);
+                $val = common_config('design', $attr);
+                if ($val !== false) {
+                    $siteDesign->$attr = $val;
+                }
             }
         }