From fd9415dc58ff2e85b7eb67cca8fee6356607ba26 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 14 Jun 2019 15:45:56 +0200 Subject: [PATCH] Do not set color if there's none --- pixelegg/inc/class.pixelegg_framework.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) {