Ignore:
Timestamp:
Feb 11, 2013, 5:57:02 PM (12 years ago)
Author:
roby
Message:

Eliminato warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/blocchi/01_votanti.php

    r138 r168  
    4747# calcolo sezioni
    4848$res_sez = mysql_query("select count(0) from ".$prefix."_ele_voti_".$tab." where id_cons='$id_cons' and id_gruppo='$id'", $dbi);
    49 list($numero)=mysql_fetch_row($res_sez);
     49if($res_sez)
     50        list($numero)=mysql_fetch_row($res_sez);
     51else
     52        $numero=0;
    5053$res_sez = mysql_query("select t3.* from ".$prefix."_ele_voti_".$tab." as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join
    5154".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' $circos group by t3.id_sez ",$dbi);
Note: See TracChangeset for help on using the changeset viewer.