Changeset 336 for trunk/admin/modules/Elezioni/ele_widget.php
- Timestamp:
- Sep 23, 2020, 11:32:27 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_widget.php
r256 r336 25 25 26 26 $id_comune=$_SESSION['id_comune']; 27 #$res = mysql_query("SELECT t1.tipo_cons,t2.id_cons FROM ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='$id_cons_gen' and t2.id_comune='$id_comune' " , $dbi);28 27 29 28 include("modules/Elezioni/funzionidata.php"); 30 29 include("modules/Elezioni/ele.php"); 31 30 $row=cur_cons(); 32 $tipo_cons=$row[0];$id_cons=$row[1]; 31 if(isset($row[0])) {$tipo_cons=$row[0];$id_cons=$row[1];} else {$tipo_cons=0; $id_cons=0;} 33 32 34 33 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do=''; … … 68 67 $sth->execute(); 69 68 $row = $sth->fetch(PDO::FETCH_BOTH); 70 $idwid=$row[0]; 71 $id = intval($idwid); 69 if(isset($row[0])) { 70 $idwid=$row[0]; 71 $id = intval($idwid); 72 } else $id=0; 72 73 73 74 if (empty($id)) { // inserisce widget db se non esiste
Note:
See TracChangeset
for help on using the changeset viewer.