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.
This commit is contained in:
parent
77037b3cc3
commit
bbf10e5bdf
@ -204,7 +204,10 @@ class Design extends Memcached_DataObject
|
|||||||
'disposition');
|
'disposition');
|
||||||
|
|
||||||
foreach ($attrs as $attr) {
|
foreach ($attrs as $attr) {
|
||||||
$siteDesign->$attr = common_config('design', $attr);
|
$val = common_config('design', $attr);
|
||||||
|
if ($val !== false) {
|
||||||
|
$siteDesign->$attr = $val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user