From a70bac89f0ac8b5f3ba16191b62477fa872e77e7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 5 Aug 2011 08:03:03 +0000 Subject: [PATCH] * API fix PHP fatal error wakeup2 is no method ..., when comming from setup --- phpgwapi/inc/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 0cd78cf75b..506590aa17 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -78,7 +78,7 @@ if (egw_session::init_handler()) } $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)