Changeset 336 for trunk/admin/modules/Elezioni/ele_configurazione.php
- Timestamp:
- Sep 23, 2020, 11:32:27 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_configurazione.php
r257 r336 29 29 include("modules/Elezioni/ele.php"); 30 30 $row=cur_cons(); 31 $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;} 32 32 33 33 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do=''; … … 63 63 global $tipo_cons,$param,$currentlang, $bgcolor1, $bgcolor2, $prefix, $prefix2, $dbi, $offset, $min, $id_cons,$id_cons_gen,$id_comune,$do,$tema,$language,$help; 64 64 global $gkey,$ed_user,$googlemaps,$editor,$tema_on; 65 // $restemp = mysql_query("select count(0) from ".$prefix."_ele_conf where tema='$tema'", $dbi);66 // list($numtemp)=mysql_fetch_row($restemp);67 65 68 66 … … 234 232 $sth = $dbi->prepare("$sql"); 235 233 $sth->execute(); 236 $row = $sth->fetch(PDO::FETCH_BOTH); 237 $id = intval($row[0]); 238 234 if($sth->rowCount()) { 235 $row = $sth->fetch(PDO::FETCH_BOTH); 236 $id = intval($row[0]); 237 } else { 238 $id=0; 239 } 239 240 if (empty($id)) { // inserisce widget db se non esiste 240 241 $sql="insert into ".$prefix."_ele_temi (id,tema) values ( NULL,'$files')";
Note:
See TracChangeset
for help on using the changeset viewer.