]> 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)
committerAdrian Lang <mail@adrianlang.de>
Mon, 10 Aug 2009 13:01:00 +0000 (15:01 +0200)
classes/Design.php

index dc1712aff3f911c068c34422722e182afcadf468..de3a526f7c5a3351bc9c219e0b1477de33265e92 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;
+                }
             }
         }