2
0
forked from Wavyzz/dolibarr

Merge pull request #13289 from atm-greg/Fix_countable_warning_on_homescreen

fix countable warning on home screen
This commit is contained in:
Laurent Destailleur
2020-03-06 14:13:24 +01:00
committed by GitHub

View File

@@ -1198,7 +1198,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) {