diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index e6f36010ad..a1495d82af 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -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 { /**