Changeset 336 for trunk/admin/temi


Ignore:
Timestamp:
Sep 23, 2020, 11:32:27 AM (4 years ago)
Author:
roby
Message:

Admin: prime modifiche per compatibilità con php 7.4

Location:
trunk/admin/temi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/temi/default/index.php

    r256 r336  
    1818        $sth->execute();       
    1919        $row = $sth->fetch(PDO::FETCH_BOTH);
    20 $descr_consultazione=$row[0];
     20        if($sth->rowCount())
     21                $descr_consultazione=$row[0];
     22        else
     23                $descr_consultazione='';
    2124$sql="select descrizione from ".$prefix."_ele_comuni where id_comune='$id_comune'";
    2225        $sth = $dbi->prepare("$sql");
    2326        $sth->execute();       
    2427        $row = $sth->fetch(PDO::FETCH_BOTH);
    25 $descr_comune=$row[0];
     28        if($sth->rowCount())
     29                $descr_comune=$row[0];
     30        else
     31                $descr_comune='';
    2632
    2733echo "<div class=\"container\"><table width=\"95%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"table-main\">
  • trunk/admin/temi/facebook/menu.php

    r257 r336  
    5858        $sth->execute();       
    5959        $row = $sth->fetch(PDO::FETCH_BOTH);         
    60         $esiste_multi=mysql_num_rows($rescomu);
     60        $esiste_multi=$sth->rowCount();
    6161              if ($esiste_multi>=1) {
    6262                    echo " <li>
     
    129129                ***********************************/
    130130
    131         $res = mysql_query("SELECT count(0) FROM ".$prefix."_ele_circoscrizione where id_cons='$id_cons' ", $dbi);
    132131        $sql = "SELECT count(0) FROM ".$prefix."_ele_circoscrizione where id_cons='$id_cons'";
    133132        $sth = $dbi->prepare("$sql");
Note: See TracChangeset for help on using the changeset viewer.