Ignore:
Timestamp:
Nov 15, 2009, 1:26:09 PM (14 years ago)
Author:
nikrou
Message:

Feature 1241 resolved. replace mysql_fetch_array by mysql_fetch_assoc for small php code improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/site_manager.php

    r3282 r4265  
    9999  WHERE galleries_url = \''.$url.'\'
    100100;';
    101   $row = mysql_fetch_array(pwg_query($query));
     101  $row = mysql_fetch_assoc(pwg_query($query));
    102102  if ($row['count'] > 0)
    103103  {
     
    168168  WHERE id = '.$page['site'].'
    169169;';
    170   list($galleries_url) = mysql_fetch_array(pwg_query($query));
     170  list($galleries_url) = mysql_fetch_row(pwg_query($query));
    171171  switch($_GET['action'])
    172172  {
     
    237237$result = pwg_query($query);
    238238
    239 while ($row = mysql_fetch_array($result))
     239while ($row = mysql_fetch_assoc($result))
    240240{
    241241  $is_remote = url_is_remote($row['galleries_url']);
Note: See TracChangeset for help on using the changeset viewer.