Merge pull request #12720 from inietov/fixes/undefined_array_key_266

Fixed Undefined array key 266 rollbar 17086
This commit is contained in:
snipe 2023-03-24 04:50:47 -07:00 committed by GitHub
commit 642d1e9f36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -334,7 +334,11 @@ class Helper
'#92896B',
];
$total_colors = count($colors);
if ($index >= $total_colors) {
$index = $index - $total_colors;
}
return $colors[$index];
}