From f49eaf39ce20bf327004320b00d6a11f1c2136cd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 8 Sep 2010 07:45:38 +0000 Subject: [PATCH] fixed in some update situations called unset_datetime on egw_minimal object --- phpgwapi/inc/class.preferences.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.preferences.inc.php b/phpgwapi/inc/class.preferences.inc.php index 020040c368..f33a026c44 100644 --- a/phpgwapi/inc/class.preferences.inc.php +++ b/phpgwapi/inc/class.preferences.inc.php @@ -405,7 +405,7 @@ class preferences //echo "

".__METHOD__."() tz=$prefs[tz] --> tz_offset={$GLOBALS['egw_info']['user']['preferences']['common']['tz_offset']}

\n"; // ToDo: get rid of that - if (isset($GLOBALS['egw']) && is_object($GLOBALS['egw'])) + if (isset($GLOBALS['egw']) && is_a($GLOBALS['egw'],'egw')) { $GLOBALS['egw']->unset_datetime(); // to force an update }