From 89b01e97a9c21d53ab0cdeda087fd70916b1b75b Mon Sep 17 00:00:00 2001 From: divone Date: Thu, 30 Jul 2026 23:41:33 +0300 Subject: [PATCH] Update shopColorValue.class.php https://support.webasyst.ru/forum/30361/otobrazhenie-khar-ek-tipa-tsvet/ --- lib/classes/shopColorValue.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;