Ignore:
Timestamp:
Jun 17, 2010, 8:11:11 PM (14 years ago)
Author:
nikrou
Message:

Bug 1733 fixed : merge from trunk
single quotes in queries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/admin/cat_modify.php

    r6364 r6551  
    9393  {
    9494    $query = '
    95 UPDATE '.CATEGORIES_TABLE.' SET image_order='.(isset($image_order) ? 'NULL':"'$image_order'").'
    96   WHERE uppercats LIKE "'.$cat_info['uppercats'].',%"';
     95UPDATE '.CATEGORIES_TABLE.' SET image_order='.(isset($image_order) ? 'NULL':'\''.$image_order.'\'').'
     96  WHERE uppercats LIKE \''.$cat_info['uppercats'].',%\'';
    9797    pwg_query($query);
    9898  }
Note: See TracChangeset for help on using the changeset viewer.