appdb/. appbrowse.php

WineHQ wineowner at wine.codeweavers.com
Fri Jun 23 22:05:16 CDT 2006


ChangeSet ID:	26008
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2006/06/23 22:05:16

Modified files:
	.              : appbrowse.php 

Log message:
	Chris Morgan <cmorgan at alum.wpi.edu>
	Retrieve iCatId from $_REQUEST(), we can't use $aClean[] because it isn't in scope.
	Fixes editing categories

Patch: http://cvs.winehq.org/patch.py?id=26008

Old revision  New revision  Changes     Path
 1.12          1.13          +4 -6       appdb/appbrowse.php

Index: appdb/appbrowse.php
diff -u -p appdb/appbrowse.php:1.12 appdb/appbrowse.php:1.13
--- appdb/appbrowse.php:1.12	24 Jun 2006  3: 5:16 -0000
+++ appdb/appbrowse.php	24 Jun 2006  3: 5:16 -0000
@@ -14,14 +14,12 @@ $aClean['catId'] = makeSafe($_REQUEST['c
 
 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();



More information about the wine-cvs mailing list