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

    r3282 r4265  
    194194  WHERE id = '.$_GET['cat_id'].'
    195195;';
    196 $category = mysql_fetch_array( pwg_query( $query ) );
     196$category = mysql_fetch_assoc( pwg_query( $query ) );
    197197// nullable fields
    198198foreach (array('comment','dir','site_id', 'id_uppercat') as $nullable)
     
    374374  WHERE id = '.$category['representative_picture_id'].'
    375375;';
    376     $row = mysql_fetch_array(pwg_query($query));
     376    $row = mysql_fetch_assoc(pwg_query($query));
    377377    $src = get_thumbnail_url($row);
    378378    $url = get_root_url().'admin.php?page=picture_modify';
Note: See TracChangeset for help on using the changeset viewer.