mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Fixed #9266 - set a colors_array variable even if other conditions are not met
This commit is contained in:
parent
0dd38c4a9b
commit
f164f0ea60
|
@ -175,6 +175,7 @@ class StatuslabelsController extends Controller
|
|||
$labels=[];
|
||||
$points=[];
|
||||
$default_color_count = 0;
|
||||
$colors_array = array();
|
||||
|
||||
foreach ($statuslabels as $statuslabel) {
|
||||
if ($statuslabel->assets_count > 0) {
|
||||
|
|
Loading…
Reference in a new issue