Do not set color if there's none

This commit is contained in:
Hadi Nategh 2019-06-14 15:45:56 +02:00
parent 78ec00bad1
commit fd9415dc58

View File

@ -108,7 +108,7 @@ class pixelegg_framework extends Api\Framework\Ajax
$GLOBALS['egw_info']['user']['preferences']['common']['template_color']);
// Create a dark variant of the color
$color_darker = $this->_color_shader($color, -30);
$color_darker = empty($color) ? '' :$this->_color_shader($color, -30);
if (preg_match('/^(#[0-9A-F]+|[A-Z]+)$/i', $GLOBALS['egw_info']['user']['preferences']['common']['sidebox_custom_color']))
{