From 906bf5f450af0f140b42eba1291aa53c623b9e45 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 5 Oct 2008 06:30:42 +0000 Subject: [PATCH] "fix for \"Undefined index phpgw_compatibility\" reported by JoKe on the German list" --- header.inc.php.template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/header.inc.php.template b/header.inc.php.template index d6f10e663f..660fdc61d0 100644 --- a/header.inc.php.template +++ b/header.inc.php.template @@ -13,7 +13,8 @@ */ // allow to migrate from phpgw_info to egw_info -if (!isset($GLOBALS['egw_info']) || isset($GLOBALS['egw_info']['flags']['phpgw_compatibility']) || +if (!isset($GLOBALS['egw_info']) || + isset($GLOBALS['egw_info']['flags']['phpgw_compatibility']) && $GLOBALS['egw_info']['flags']['phpgw_compatibility'] || in_array($GLOBALS['egw_info']['flags']['currentapp'],array('jinn','mydms','tts'))) { $GLOBALS['egw_info'] =& $GLOBALS['phpgw_info']; @@ -89,7 +90,7 @@ unset($setup_info); $GLOBALS['egw_info']['server']['versions']['header'] = '1.28'; // some not longer necessary defines -if ($GLOBALS['egw_info']['flags']['phpgw_compatibility']) +if (isset($GLOBALS['egw_info']['flags']['phpgw_compatibility']) && $GLOBALS['egw_info']['flags']['phpgw_compatibility']) { define('PHPGW_API_INC',EGW_API_INC); define('PHPGW_SERVER_ROOT',EGW_SERVER_ROOT);