Ignore:
Timestamp:
Nov 15, 2009, 1:26:09 PM (15 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/user_perm.php

    r3282 r4265  
    7979;';
    8080  $result = pwg_query($query);
    81   while ($row = mysql_fetch_array($result))
     81  while ($row = mysql_fetch_assoc($result))
    8282  {
    8383    array_push($private_uppercats, $row['id']);
     
    9696  $result = pwg_query($query);
    9797
    98   while ($row = mysql_fetch_array($result))
     98  while ($row = mysql_fetch_assoc($result))
    9999  {
    100100    array_push($authorized_ids, $row['cat_id']);
     
    159159{
    160160  $cats = array();
    161   while ($row = mysql_fetch_array($result))
     161  while ($row = mysql_fetch_assoc($result))
    162162  {
    163163    array_push($cats, $row);
     
    192192$result = pwg_query($query_true);
    193193$authorized_ids = array();
    194 while ($row = mysql_fetch_array($result))
     194while ($row = mysql_fetch_assoc($result))
    195195{
    196196  array_push($authorized_ids, $row['id']);
Note: See TracChangeset for help on using the changeset viewer.