Changeset 18456


Ignore:
Timestamp:
10/04/12 06:23:27 (7 years ago)
Author:
rvelices
Message:

fix - when applying default image order to an album , same behaviour (null versus empty string db field) for parent and children

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/element_set_ranks.php

    r17289 r18456  
    129129  $query = ' 
    130130UPDATE '.CATEGORIES_TABLE.'  
    131   SET image_order=\''.$image_order.'\' 
     131  SET image_order = '.(isset($image_order) ? '\''.$image_order.'\'' : 'NULL').' 
    132132  WHERE id='.$page['category_id']; 
    133133  pwg_query($query); 
Note: See TracChangeset for help on using the changeset viewer.