Retrieve iCatId from $_REQUEST(), we can't use $aClean[] because it isn't in scope.

Fixes editing categories
This commit is contained in:
Chris Morgan
2006-06-24 03:05:16 +00:00
committed by WineHQ
parent 3537fcbd88
commit baa92fba38

View File

@@ -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();