Applied patch #492235 for parent cat select

This commit is contained in:
Miles Lott 2001-12-22 16:14:31 +00:00
parent 4959718a17
commit 67ecd24a4a
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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'];