Fixed #9266 - set a colors_array variable even if other conditions are not met

This commit is contained in:
snipe 2021-03-09 21:04:32 -08:00
parent 0dd38c4a9b
commit f164f0ea60

View file

@ -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) {