aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/element_set_ranks.php2
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);