diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 3f7ae6a8d9..74951fa0fb 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -673,11 +673,11 @@ $tpldir = PHPGW_SERVER_ROOT . '/' . $appname . '/templates/' . $GLOBALS['phpgw_info']['server']['template_set']; $tpldir_default = PHPGW_SERVER_ROOT . '/' . $appname . '/templates/default'; - if (is_dir($tpldir)) + if (@is_dir($tpldir)) { return $tpldir; } - elseif (is_dir($tpldir_default)) + elseif (@is_dir($tpldir_default)) { return $tpldir_default; }