Ignore:
Timestamp:
Dec 1, 2020, 8:25:00 PM (3 years ago)
Author:
roby
Message:

Segue modifiche per la compatibilità php7.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/gruppo.php

    r338 r344  
    522522                        }
    523523                        $res_numsez = $dbi->prepare("$sql");
    524                         $res_numsez->execute();#                                for ($z=1;$z<=($offsetsez-$ominsez);$z++) {
     524                        $res_numsez->execute();
    525525                        $sevaltot=0;
    526526                        $senultot=0;
     
    681681                                        if (!isset($tab15) or !$tab15) $tab15="candidati";
    682682                    if($tab15=="gruppo" or $genere==4){
    683                           $votigl=" sum(validi),sum(nulli),sum(bianchi),sum(contestati),sum(voti_nulli)";
     683                                                if($votog) $tab15="lista";
     684                                                $votigl=" sum(validi),sum(nulli),sum(bianchi),sum(contestati),sum(voti_nulli)";
    684685                    }elseif($votog){
    685686                          $votigl=" sum(validi),sum(nulli),sum(bianchi),sum(contestati),sum(voti_nulli)";
     
    701702                                        if($resvt) list($votlt)=$resvt->fetch(PDO::FETCH_NUM); else $votlt=0;
    702703                                        if($perc) $temp3=arrayperc($temp,$sevaltot);
    703                                         while (list($key,$voti)= each($temp)) {
     704
     705                                        foreach($temp as $key=>$voti) {
    704706                                                if ($perc=='true' and $voticompl)
    705707                                                {
     
    714716                                $tmp=array($sevaltot,$senultot,$sebiatot,$secontot,$sevnutot);
    715717                                if($perc) $temp3=arrayperc($tmp,$voticompl);
    716                                 while(list($k,$voti)= each($tmp)) {
    717                                        
     718
     719                                foreach($tmp as $k=>$voti) {   
    718720                    if ($perc=='true' and $voticompl)
    719721                    {
Note: See TracChangeset for help on using the changeset viewer.