Ignore:
Timestamp:
Apr 10, 2013, 11:51:16 AM (11 years ago)
Author:
cljosse
Message:

[extensions] mail_superviseur update to piwigo 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Mail_supervisor/include/fonctions.php

    r22118 r22120  
    154154
    155155        if (!empty($datas)) {
    156                 while ($group = mysqli_fetch_array($datas,MYSQL_ASSOC)){
     156                while ($group = pwg_db_fetch_array($datas,MYSQL_ASSOC)){
    157157                        if (!empty($group['email'])){
    158158                                //array_push($groups, format_email($group['username'], $group['email'] ));
     
    221221                $datas=pwg_query($query) ;
    222222                if (!empty($datas)) {
    223                         list($count) = mysqli_fetch_row($datas);
     223                        list($count) = pwg_db_fetch_row($datas);
    224224                }
    225225
     
    232232        $datas = pwg_query($query);
    233233        if (!empty($datas)) {
    234                 while ($row = mysqli_fetch_array($datas,MYSQL_ASSOC)){
     234                while ($row = pwg_db_fetch_array($datas,MYSQL_ASSOC)){
    235235                        array_push($data,$row);
    236236                }
     
    451451                $result = @pwg_query($query);
    452452        }
    453         $datas = mysqli_fetch_array($result,MYSQL_ASSOC);
     453        $datas = pwg_db_fetch_array($result,MYSQL_ASSOC);
    454454        $nb = $datas['total']|0;
    455455        //=======================================================================
     
    515515                        $result = @pwg_query($query);
    516516                }
    517                 $datas = mysqli_fetch_array($result,MYSQL_ASSOC);
     517                $datas = pwg_db_fetch_array($result,MYSQL_ASSOC);
    518518                $nb = $datas['total'];
    519519
    520                 $row  = mysqli_fetch_row(pwg_query($query));
     520                $row  = pwg_db_fetch_row(pwg_query($query));
    521521                $nb =  ($row[7]);
    522522                $erreur_message .= $ip0 . ' | ' .$ip . ' | ' . $pays . ' | ' . $region . ' | ' . $ville . ' ' . $nb . ' ==> ';
Note: See TracChangeset for help on using the changeset viewer.