diff --git a/calendar/index.php b/calendar/index.php index 2fc2845de3..8bf8601edb 100755 --- a/calendar/index.php +++ b/calendar/index.php @@ -23,7 +23,7 @@ include("../header.inc.php"); $newpage = $phpgw_info["user"]["preferences"]["calendar"]["defaultcalendar"]; - if ($namepage=="index.php") { + if ($newpage=="index.php") { $newpage = "month.php"; $phpgw->preferences->change("calendar","defaultcalendar","month.php"); $phpgw->preferences->commit();