adjusting for less than 0 possibility

This commit is contained in:
akemidx
2023-11-08 12:51:51 -05:00
parent 154e71de74
commit 495521b70e
3 changed files with 26 additions and 0 deletions
+4
View File
@@ -350,6 +350,10 @@ class Helper
if ($index >= $total_colors) {
$index = $index - $total_colors - 1;
if($index < 0) {
$index = 0;
}
}
return $colors[$index];