mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
shifting wrap around logic back into 0-265
This commit is contained in:
parent
92c7de3fb5
commit
154e71de74
|
@ -349,7 +349,7 @@ class Helper
|
|||
$total_colors = count($colors);
|
||||
|
||||
if ($index >= $total_colors) {
|
||||
$index = $index - $total_colors;
|
||||
$index = $index - $total_colors - 1;
|
||||
}
|
||||
|
||||
return $colors[$index];
|
||||
|
|
Loading…
Reference in a new issue