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/include/picture_rate.inc.php

    r3282 r4265  
    3838  WHERE element_id = '.$picture['current']['id'].'
    3939;';
    40     $row = mysql_fetch_array(pwg_query($query));
     40    $row = mysql_fetch_assoc(pwg_query($query));
    4141  }
    4242  else
     
    7070      if (mysql_num_rows($result) > 0)
    7171      {
    72         $row = mysql_fetch_array($result);
     72        $row = mysql_fetch_assoc($result);
    7373        $user_rate = $row['rate'];
    7474      }
Note: See TracChangeset for help on using the changeset viewer.