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/install/upgrade_1.5.0.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    foreach(preg_split('/[,]+/', $row['keywords']) as $keyword)
     
    352352$query = 'SELECT param FROM '.PREFIX_TABLE.'config';
    353353$result = pwg_query($query);
    354 while ($row = mysql_fetch_array($result))
     354while ($row = mysql_fetch_assoc($result))
    355355{
    356356  unset( $params[ $row['param'] ] );
     
    453453$result = pwg_query($query);
    454454
    455 while ($row = mysql_fetch_array($result))
     455while ($row = mysql_fetch_assoc($result))
    456456{
    457457  if (!in_array($row['Field'], $to_keep))
Note: See TracChangeset for help on using the changeset viewer.