From e6a2e46a6f41591ea0f8fad5863dc610c4a2633f Mon Sep 17 00:00:00 2001 From: skeeter Date: Wed, 27 Dec 2000 22:28:12 +0000 Subject: [PATCH] fix for default apps --- index.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index c4348beb30..35034cba2b 100755 --- a/index.php +++ b/index.php @@ -59,17 +59,17 @@ $phpgw->common->navbar(True); } } + } elseif ($cd=="yes" && $phpgw_info["user"]["preferences"]["common"]["default_app"] + && $phpgw_info["user"]["apps"][$phpgw_info["user"]["preferences"]["common"]["default_app"]]) { + $phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/" + . $phpgw_info["user"]["preferences"]["common"]["default_app"] . "/")); + $phpgw->common->phpgw_exit(); } else { $phpgw->common->phpgw_header(); $phpgw->common->navbar(); } - if ($cd=="yes" && $phpgw_info["user"]["preferences"]["common"]["default_app"] - && $phpgw_info["user"]["apps"][$phpgw_info["user"]["preferences"]["common"]["default_app"]]) { - $phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/" - . $phpgw_info["user"]["preferences"]["common"]["default_app"] . "/")); - $phpgw->common->phpgw_exit(); - } + //$phpgw->hooks->proccess("location","mainscreen");