From d5b8419f8dfa471ad81629fa5f88bda6f8f6e663 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 24 Aug 2004 20:01:49 +0000 Subject: [PATCH] fixing the fix, now even all sub-arrays get reset --- phpgwapi/inc/common_functions.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index 1036a1dd2c..d98bad354c 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -1220,6 +1220,8 @@ } } } + // in case some stupid old code expects the array-pointer to be at the start of the array + reset($var); } } @@ -1239,7 +1241,6 @@ if (is_array($GLOBALS[$where])) { _check_script_tag($GLOBALS[$where],$where); - reset($GLOBALS[$where]); // in case some stupid old code expects the array-pointer to be at the start of the array } } ?>