summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-18 22:27:26 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-18 22:27:26 +0000
commit407cca7faea41e62077185d1ddc23f652fd2fd31 (patch)
tree91d09f37e3d07f45f1821d44162ff25c14d57f7d /index.php
parentcbf14e6928764960adf0d486173dbdd57ccfa6a0 (diff)
downloadcalendar-407cca7faea41e62077185d1ddc23f652fd2fd31.tar.gz
calendar-407cca7faea41e62077185d1ddc23f652fd2fd31.tar.bz2
calendar-407cca7faea41e62077185d1ddc23f652fd2fd31.zip
add calendar module that works quite well with the existing calendar
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 66412a8..3c16d83 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_calendar/index.php,v 1.12 2005/08/18 21:42:37 lsces Exp $
+// $Header: /cvsroot/bitweaver/_bit_calendar/index.php,v 1.13 2005/08/18 22:27:26 squareing Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
@@ -34,9 +34,9 @@ foreach ($_SESSION['calendarContentGuids'] as $calt) {
}
$gBitSmarty->assign('bitcal', $bitcal);
-if (isset($_REQUEST["todate"]) && $_REQUEST['todate']) {
+if (!empty($_REQUEST["todate"])) {
$_SESSION['calendar_focus_date'] = $_REQUEST['todate'];
-} elseif (isset($_SESSION['calendar_focus_date']) && $_SESSION['calendar_focus_date']) {
+} elseif (!empty($_SESSION['calendar_focus_date'])) {
$_REQUEST["todate"] = $_SESSION['calendar_focus_date'];
} else {
$_SESSION['calendar_focus_date'] = mktime(0, 0, 0, date('m'), date('d'), date('Y'));