Ignore:
Timestamp:
Mar 28, 2010, 7:19:23 PM (14 years ago)
Author:
grum
Message:

Update the plugin for compatibility with Piwigo 2.1 - use dblayer for sql queries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMenuManager/amm_aip.class.inc.php

    r5421 r5427  
    609609    if($result)
    610610    {
    611       $tmp=mysql_fetch_row($result);
     611      $tmp=pwg_db_fetch_row($result);
    612612      $tmp=$tmp[0];
    613613    }
     
    803803    if($result)
    804804    {
    805       $returned=mysql_fetch_array($result);
     805      $returned=pwg_db_fetch_assoc($result);
    806806      //$returned['label']=stripslashes($returned['label']);
    807807    }
     
    817817    {
    818818      $tmp=array();
    819       while($row=mysql_fetch_array($result))
     819      while($row=pwg_db_fetch_assoc($result))
    820820      {
    821821        $tmp[$row['id']]=$row['position'];
     
    879879    if($result)
    880880    {
    881       while($returned[]=mysql_fetch_array($result));
     881      while($returned[]=pwg_db_fetch_assoc($result));
    882882    }
    883883    return($returned);
     
    917917    if($result)
    918918    {
    919       $row=mysql_fetch_row($result);
     919      $row=pwg_db_fetch_row($result);
    920920      if(is_array($row))
    921921      {
Note: See TracChangeset for help on using the changeset viewer.