2
0
forked from Wavyzz/dolibarr

fix countable warning

This commit is contained in:
atm-greg
2020-03-06 11:30:45 +01:00
parent 4c6a4ade5b
commit eafff58a54

View File

@@ -1189,7 +1189,7 @@ class DolGraph
$oldstacknum = -1;
while ($i < $nblot) // Loop on each serie
{
if (count($arrayofgroupslegend[$i]) > 0) { // We used a 'group by'
if (is_array($arrayofgroupslegend[$i]) && count($arrayofgroupslegend[$i]) > 0) { // We used a 'group by'
// If we change the stack
$newcolor = $this->datacolor[$arrayofgroupslegend[$i]['stacknum']];
if ($oldstacknum == -1 || $arrayofgroupslegend[$i]['stacknum'] != $oldstacknum) {