From: Adrian Lang Date: Mon, 10 Aug 2009 13:01:00 +0000 (+0200) Subject: common_config returns false if the config value is not set. Design::toWebColor checks... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bbf10e5bdf3ee0dfa372b170da6e25bee859b3c5;p=quix0rs-gnu-social.git common_config returns false if the config value is not set. Design::toWebColor checks with is_null. Hence the common_config value should be adjusted. --- diff --git a/classes/Design.php b/classes/Design.php index 9354bfcda8..19c9e02924 100644 --- a/classes/Design.php +++ b/classes/Design.php @@ -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; + } } }