diff --git a/lib/classes/shopColorValue.class.php b/lib/classes/shopColorValue.class.php index 72aeb9c32..bb9d2b858 100644 --- a/lib/classes/shopColorValue.class.php +++ b/lib/classes/shopColorValue.class.php @@ -58,7 +58,7 @@ public function __get($field) $style = ""; if ($this->code !== null) { $d = !!(0xFF & $this->code < 0x7F) + !!(0xFF & ($this->code >> 8) < 0x7F) + 2 * !!(0xFF & ($this->code >> 16) < 0x7F); - if ($d > 2) { + if ($d > 1) { $color = 0xFFFFFF; } else { $color = 0x000000;