From 4694b6e9177d51b9f185c58ad89789b89c1073e3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 26 Oct 2008 07:34:21 +0000 Subject: [PATCH] "prevent fatal error if only egw_minimal is instanciated in $GLOBALS[egw], eg. setup" --- phpgwapi/inc/common_functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index 8425222858..4762488c9a 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -1408,9 +1408,9 @@ function egw_exception_handler(Exception $e) '
'.$e->getMessage()."\n\n".
 		$e->getTraceAsString()."
\n"; - if (is_object($GLOBALS['egw']) && isset($GLOBALS['egw']->session)) + if (is_object($GLOBALS['egw']) && isset($GLOBALS['egw']->session) && method_exists($GLOBALS['egw'],'link')) { - '

'.try_lang('Click here to resume your eGroupWare Session.').'

'; + $message .= '

'.try_lang('Click here to resume your eGroupWare Session.').'

'; } if (is_object($GLOBALS['egw']) && isset($GLOBALS['egw']->framework)) {