diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index cd790ff40f..0fcee31575 100644 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -354,6 +354,9 @@ class Helper if($index < 0) { $index = 0; } + elseif($index > 255) { + $index = 255; + } } return $colors[$index];