Ignore:
Timestamp:
Mar 30, 2021, 11:16:34 PM (3 years ago)
Author:
roby
Message:

ulteriori modifiche per adeguamento a php7
Client: aggiornamento jpgraph

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/grafici/jpgraph_pie.php

    r284 r346  
    335335
    336336            if( $this->setslicecolors==null ) {
    337                 $graph->legend->Add($l,$colors[$ta[$i%$numcolors]],"",0,$this->csimtargets[$i],$alt,$wintarg);
     337                $csimtarget = isset($this->csimtargets[$i]) ? $this->csimtargets[$i] : null;
     338                $graph->legend->Add($l,$colors[$ta[$i%$numcolors]],"",0,$csimtarget,$alt,$wintarg);
    338339            }
    339340            else {
    340                 $graph->legend->Add($l,$this->setslicecolors[$i%$numcolors],"",0,$this->csimtargets[$i],$alt,$wintarg);
     341                $csimtarget = isset($this->csimtargets[$i]) ? $this->csimtargets[$i] : null;
     342                $graph->legend->Add($l,$this->setslicecolors[$i%$numcolors],"",0,$csimtarget,$alt,$wintarg);
    341343            }
    342344        }
Note: See TracChangeset for help on using the changeset viewer.