diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index a1495d82af..db4763644f 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 (isset($GLOBALS[$where]) && is_array($GLOBALS[$where]) && ($n < 2 || is_array($GLOBALS['egw_unset_vars']))) + if (isset($GLOBALS[$where]) && is_array($GLOBALS[$where]) && ($n < 2 || isset($GLOBALS['egw_unset_vars']))) { _check_script_tag($GLOBALS[$where],$where); }