* API fix PHP fatal error wakeup2 is no method ..., when comming from setup

This commit is contained in:
Ralf Becker 2011-08-05 08:01:51 +00:00
parent 30f5025431
commit 5e9d4f3601

View File

@ -78,7 +78,7 @@ if (egw_session::init_handler())
} }
$GLOBALS['egw'] = unserialize($_SESSION[egw_session::EGW_OBJECT_CACHE]); $GLOBALS['egw'] = unserialize($_SESSION[egw_session::EGW_OBJECT_CACHE]);
if (is_object($GLOBALS['egw'])) if (is_object($GLOBALS['egw']) && is_a($GLOBALS['egw'], 'egw')) // only egw object has wakeup2, setups egw_minimal eg. has not!
{ {
$GLOBALS['egw']->wakeup2(); // adapt the restored egw-object/enviroment to this request (eg. changed current app) $GLOBALS['egw']->wakeup2(); // adapt the restored egw-object/enviroment to this request (eg. changed current app)