diff --git a/admin/inc/class.bocategories.inc.php b/admin/inc/class.bocategories.inc.php index 03f8cfcaac..8803d3accd 100644 --- a/admin/inc/class.bocategories.inc.php +++ b/admin/inc/class.bocategories.inc.php @@ -59,11 +59,11 @@ { unset($this->cat_id); } - if(isset($sort)) + if(isset($sort) && !empty($sort)) { $this->sort = $sort; } - if(isset($order)) + if(isset($order) && !empty($order)) { $this->order = $order; } diff --git a/admin/inc/class.uicategories.inc.php b/admin/inc/class.uicategories.inc.php index 35f5001704..a03e9ecf7b 100644 --- a/admin/inc/class.uicategories.inc.php +++ b/admin/inc/class.uicategories.inc.php @@ -175,7 +175,7 @@ $new_parent = $GLOBALS['HTTP_POST_VARS']['new_parent']; $submit = $GLOBALS['HTTP_POST_VARS']['submit']; - $cat_parent = $GLOBALS['HTTP_POST_VARS']['cat_parent']; + $cat_parent = $GLOBALS['HTTP_POST_VARS']['cat_parent'] ? $GLOBALS['HTTP_POST_VARS']['cat_parent'] : $GLOBALS['HTTP_GET_VARS']['cat_parent']; $cat_name = $GLOBALS['HTTP_POST_VARS']['cat_name']; $cat_description = $GLOBALS['HTTP_POST_VARS']['cat_description'];