Just a couple of fixes to the cd variable. It should be a GLOBALS['HTTP_GET_VARS'] var.

This commit is contained in:
skeeter 2001-09-02 07:26:23 +00:00
parent e1daedd696
commit 3aaee26209

View File

@ -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'));