Changeset 291 for trunk


Ignore:
Timestamp:
Apr 29, 2019, 4:52:13 PM (6 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/admin.php

    r269 r291  
    205205        $sth = $dbi->prepare("select counter,admlanguage from ".$prefix."_authors where aid='$aid' and pwd='$mpwd' and id_comune='$id_comune'");
    206206        $sth->execute();       
    207         $row = $sth->fetch(PDO::FETCH_ASSOC);   
    208 
    209                 if ($sth){
    210                         $esiste=$sth->rowCount();
     207        $esiste=$sth->rowCount();       
     208       
     209
     210                if ($esiste){
     211                        $row = $sth->fetch(PDO::FETCH_ASSOC);
    211212                        $counter=$row['counter'];
    212213                        $tmplang=$row['admlanguage'];
     
    380381$ref=$ref."&language=".$_SESSION['lang'];
    381382
    382 session_cache_expire (0);
    383383$_SESSION=array(); 
    384384session_unset();
    385385session_destroy();
     386session_cache_expire (0);
    386387Header($ref);
    387388
Note: See TracChangeset for help on using the changeset viewer.