Use the 'extract()' function if possible

This commit is contained in:
Loïc Chapeaux
2001-08-15 15:48:09 +00:00
parent 827c5ac58b
commit e85f464b1a

View File

@@ -11,15 +11,11 @@ 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)) {