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/group_perm.php

    r3282 r4265  
    8080;';
    8181  $result = pwg_query($query);
    82   while ($row = mysql_fetch_array($result))
     82  while ($row = mysql_fetch_assoc($result))
    8383  {
    8484    array_push($private_uppercats, $row['id']);
     
    9797  $result = pwg_query($query);
    9898
    99   while ($row = mysql_fetch_array($result))
     99  while ($row = mysql_fetch_assoc($result))
    100100  {
    101101    array_push($authorized_ids, $row['cat_id']);
     
    158158$result = pwg_query($query_true);
    159159$authorized_ids = array();
    160 while ($row = mysql_fetch_array($result))
     160while ($row = mysql_fetch_assoc($result))
    161161{
    162162  array_push($authorized_ids, $row['id']);
Note: See TracChangeset for help on using the changeset viewer.