mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
"prevent fatal error if only egw_minimal is instanciated in $GLOBALS[egw], eg. setup"
This commit is contained in:
parent
5cf8a56f02
commit
4694b6e917
@ -1408,9 +1408,9 @@ function egw_exception_handler(Exception $e)
|
||||
'<pre><b>'.$e->getMessage()."</b>\n\n".
|
||||
$e->getTraceAsString()."</pre>\n";
|
||||
|
||||
if (is_object($GLOBALS['egw']) && isset($GLOBALS['egw']->session))
|
||||
if (is_object($GLOBALS['egw']) && isset($GLOBALS['egw']->session) && method_exists($GLOBALS['egw'],'link'))
|
||||
{
|
||||
'<p><a href="'.$GLOBALS['egw']->link('/index.php').'">'.try_lang('Click here to resume your eGroupWare Session.').'</a></p>';
|
||||
$message .= '<p><a href="'.$GLOBALS['egw']->link('/index.php').'">'.try_lang('Click here to resume your eGroupWare Session.').'</a></p>';
|
||||
}
|
||||
if (is_object($GLOBALS['egw']) && isset($GLOBALS['egw']->framework))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user