From d489da2251b157419fb0086c1d151c6a6a5a4269 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 21 Jan 2001 13:57:21 +0000 Subject: [PATCH] auto reset of defaultcalendar setting --- calendar/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/calendar/index.php b/calendar/index.php index e0cb8d7150..2fc2845de3 100755 --- a/calendar/index.php +++ b/calendar/index.php @@ -23,7 +23,11 @@ include("../header.inc.php"); $newpage = $phpgw_info["user"]["preferences"]["calendar"]["defaultcalendar"]; - if ($namepage=="index.php") $newpage = "month.php"; + if ($namepage=="index.php") { + $newpage = "month.php"; + $phpgw->preferences->change("calendar","defaultcalendar","month.php"); + $phpgw->preferences->commit(); + } Header("Location: ".$newpage."?".$QUERY_STRING); $phpgw->common->phpgw_exit();