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

Admin: prime modifiche per compatibilità con php 7.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_consultazioni.php

    r306 r336  
    5555      if (!isset($min)) $min=0;
    5656if (isset($param['id_cons_gen'])){
    57          $id_cons_gen=intval($param['id_cons_gen']);
    58 $row=descr_cons();
    59 $tipo_cons=$row[0];     
    60 #$res = mysql_query("SELECT tipo_cons FROM ".$prefix."_ele_consultazione where id_cons_gen=$id_cons_gen " , $dbi);
    61 #list($tipo_cons) = mysql_fetch_row($res);
     57        $id_cons_gen=intval($param['id_cons_gen']);
     58        $row=descr_cons();
     59        if(isset($row[0])) $tipo_cons=$row[0]; else $tipo_cons=0;
    6260} else {
    63 $id_cons_gen=0;
    64 $tipo_cons=0;
     61        $id_cons_gen=0;
     62        $tipo_cons=0;
    6563}
    6664/******************************************************/
Note: See TracChangeset for help on using the changeset viewer.