From e85f464b1afe8f0c209ab275d8c41c2c8f20db3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Wed, 15 Aug 2001 15:48:09 +0000 Subject: [PATCH] Use the 'extract()' function if possible --- grab_globals.inc.php3 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/grab_globals.inc.php3 b/grab_globals.inc.php3 index 5d7cc1112..a5bc90042 100644 --- a/grab_globals.inc.php3 +++ b/grab_globals.inc.php3 @@ -11,19 +11,15 @@ if (!defined('__LIB_GRAB_GLOBALS__')) { define('__LIB_GRAB_GLOBALS__', 1); if (!empty($HTTP_GET_VARS)) { - while(list($name, $value) = each($HTTP_GET_VARS)) { - $$name = $value; - } + extract($HTTP_GET_VARS); } // end if if (!empty($HTTP_POST_VARS)) { - while(list($name, $value) = each($HTTP_POST_VARS)) { - $$name = $value; - } + extract($HTTP_POST_VARS); } // end if if (!empty($HTTP_POST_FILES)) { - while(list($name, $value) = each($HTTP_POST_FILES)) { + while (list($name, $value) = each($HTTP_POST_FILES)) { $$name = $value['tmp_name']; } } // end if