mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
"- 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:
parent
61df6f2a15
commit
1fcb14b03c
@ -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
|
||||
// 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);
|
||||
}
|
||||
@ -1274,19 +1274,6 @@ if (ini_get('register_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
|
||||
{
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user