"- test if $GLOBALS[HTTP_(GET|POST)_VARS] is set to prevent warning

- removed php4 clone function, as we require now php5.1+"
This commit is contained in:
Ralf Becker 2008-08-16 05:58:33 +00:00
parent 61df6f2a15
commit 1fcb14b03c

View File

@ -1241,7 +1241,7 @@ foreach(array('_GET','_POST','_REQUEST','HTTP_GET_VARS','HTTP_POST_VARS') as $n
} }
// do the check for script-tags only for _GET and _POST or if we found something in _GET and _POST // do the check for script-tags only for _GET and _POST or if we found something in _GET and _POST
// speeds up the execusion a bit // speeds up the execusion a bit
if (is_array($GLOBALS[$where]) && ($n < 2 || is_array($GLOBALS['egw_unset_vars']))) if (isset($GLOBALS[$where]) && is_array($GLOBALS[$where]) && ($n < 2 || is_array($GLOBALS['egw_unset_vars'])))
{ {
_check_script_tag($GLOBALS[$where],$where); _check_script_tag($GLOBALS[$where],$where);
} }
@ -1274,19 +1274,6 @@ if (ini_get('register_globals'))
unregister_globals(); unregister_globals();
} }
if(floor(phpversion()) <= 4)
{
/**
* clone function for php4, use as $new_obj = clone($old_obj);
*/
eval('
function clone($obj)
{
return $obj;
}
');
}
if (!function_exists('lang')) // setup declares an own version if (!function_exists('lang')) // setup declares an own version
{ {
/** /**