[Fusionforge-commits] r8934 - trunk/gforge/www/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Mar 3 23:20:20 CET 2010


Author: aljeux
Date: 2010-03-03 23:20:19 +0100 (Wed, 03 Mar 2010)
New Revision: 8934

Modified:
   trunk/gforge/www/admin/admin_table.php
Log:
Fix admin edit pages (like editing a theme) by changing $HTTP_POST_VARS to $_POST

Modified: trunk/gforge/www/admin/admin_table.php
===================================================================
--- trunk/gforge/www/admin/admin_table.php	2010-03-03 22:06:51 UTC (rev 8933)
+++ trunk/gforge/www/admin/admin_table.php	2010-03-03 22:20:19 UTC (rev 8934)
@@ -219,12 +219,12 @@
  *	@param $id - the id of the record to act on
  */
 function admin_table_postedit($table, $unit, $primary_key, $id) {
-	global $HTTP_POST_VARS;
+	global $_POST;
 
 	$qpa = db_construct_qpa (false, 'UPDATE ' . $table . ' SET ') ;
 	
 	$i = 0 ;
-	while (list($var, $val) = each($HTTP_POST_VARS)) {
+	while (list($var, $val) = each($_POST)) {
 		if ($i > 0) {
 			$qpa = db_construct_qpa ($qpa, ', ') ;
 		}




More information about the Fusionforge-commits mailing list