diff options
author | rvelices <rv-github@modusoptimus.com> | 2012-10-04 04:23:27 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2012-10-04 04:23:27 +0000 |
commit | 2a9e479384a572f248b29924f1af546c5e40a344 (patch) | |
tree | 54b12614614fa1f736df8818effae71ded92fdad | |
parent | cc558d869496f051c1b667d37e4dcfc474c007d1 (diff) |
fix - when applying default image order to an album , same behaviour (null versus empty string db field) for parent and children
git-svn-id: http://piwigo.org/svn/trunk@18456 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/element_set_ranks.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/element_set_ranks.php b/admin/element_set_ranks.php index df21de6d6..7b17b1d2a 100644 --- a/admin/element_set_ranks.php +++ b/admin/element_set_ranks.php @@ -128,7 +128,7 @@ if (isset($_POST['submit'])) } $query = ' UPDATE '.CATEGORIES_TABLE.' - SET image_order=\''.$image_order.'\' + SET image_order = '.(isset($image_order) ? '\''.$image_order.'\'' : 'NULL').' WHERE id='.$page['category_id']; pwg_query($query); |