diff --git a/pixelegg/inc/class.pixelegg_framework.inc.php b/pixelegg/inc/class.pixelegg_framework.inc.php index 282b31dd79..6a33ded442 100755 --- a/pixelegg/inc/class.pixelegg_framework.inc.php +++ b/pixelegg/inc/class.pixelegg_framework.inc.php @@ -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'])) {