From baa92fba383fe1226639c92c5f68c9a8eb21f844 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 24 Jun 2006 03:05:16 +0000 Subject: [PATCH] Retrieve iCatId from $_REQUEST(), we can't use $aClean[] because it isn't in scope. Fixes editing categories --- appbrowse.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/appbrowse.php b/appbrowse.php index 38498da..23e8eef 100644 --- a/appbrowse.php +++ b/appbrowse.php @@ -14,14 +14,12 @@ $aClean['catId'] = makeSafe($_REQUEST['catId']); function admin_menu() { - if( empty( $aClean['catId'] ) ) - { - $aClean['catId'] = ""; - } + if(isset($_REQUEST['catId'])) $iCatId=$_REQUEST['catId']; + else $iCatId=""; $m = new htmlmenu("Admin"); - $m->add("Edit this Category", BASE."admin/addCategory.php?catId']}"); - $url = BASE."admin/deleteAny.php?what=category&catId={$aClean['catId']}&confirmed=yes"; + $m->add("Edit this Category", BASE."admin/addCategory.php?catId=$iCatId"); + $url = BASE."admin/deleteAny.php?what=category&catId=$iCatId&confirmed=yes"; $m->add("Delete this Category", "javascript:deleteURL(\"Are you sure?\", \"".$url."\")"); $m->done();