diff --git a/phpgwapi/inc/class.jscalendar.inc.php b/phpgwapi/inc/class.jscalendar.inc.php index 9778a78ca0..da1bdf485f 100644 --- a/phpgwapi/inc/class.jscalendar.inc.php +++ b/phpgwapi/inc/class.jscalendar.inc.php @@ -44,7 +44,7 @@ class jscalendar $this->jscalendar_url = $GLOBALS['egw_info']['server']['webserver_url'].'/phpgwapi/js/'.$path; $this->dateformat = $GLOBALS['egw_info']['user']['preferences']['common']['dateformat']; - if ($do_header && !strstr($GLOBALS['egw_info']['flags']['java_script'],'jscalendar')) + if ($do_header && !@strstr($GLOBALS['egw_info']['flags']['java_script'],'jscalendar')) { $GLOBALS['egw_info']['flags']['java_script'] .= '