From 3aaee262095f7e42d8e5954fa35413e77bbabd02 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 2 Sep 2001 07:26:23 +0000 Subject: [PATCH] Just a couple of fixes to the cd variable. It should be a GLOBALS['HTTP_GET_VARS'] var. --- home.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.php b/home.php index 1d971c5d86..9b96525988 100755 --- a/home.php +++ b/home.php @@ -56,7 +56,7 @@ $GLOBALS['phpgw_info']['server']['useframes'] == 'allowed') || ($GLOBALS['phpgw_info']['server']['useframes'] == 'always')) { - if ($cd == 'yes') + if ($GLOBALS['HTTP_GET_VARS']['cd'] == 'yes') { if (! $navbarframe && ! $framebody) { @@ -97,7 +97,7 @@ } } } - elseif ($cd=='yes' && $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] + elseif ($GLOBALS['HTTP_GET_VARS']['cd']=='yes' && $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] && $GLOBALS['phpgw_info']['user']['apps'][$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app']]) { $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/' . $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] . '/' . 'index.php'));