From 9b00469b471a8b159c60ecca333f0f7064ba1d27 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Sat, 20 Dec 2008 03:22:54 +0000 Subject: misc error warnings and notices --- rss/rss_common.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rss/rss_common.php') diff --git a/rss/rss_common.php b/rss/rss_common.php index 9a7fd4f..e36ceba 100644 --- a/rss/rss_common.php +++ b/rss/rss_common.php @@ -21,7 +21,7 @@ Lines modified: 135-165, 208-223 Additional mods by J. Hu */ - +$current_view = 'rss'; require(BASE.'functions/init.inc.php'); if ($phpiCal_config->enable_rss != 'yes') { @@ -122,7 +122,7 @@ header ("ETag:\"$filemodtime\""); // checks the user agents headers to see if they kept track of our // stuff, if so be nice and send back a 304 and exit. -if ( ($_SERVER['HTTP_IF_MODIFIED_SINCE'] == $filemodtime) || ($_SERVER['HTTP_IF_NONE_MATCH'] == $filemodtime)){ +if ( (@$_SERVER['HTTP_IF_MODIFIED_SINCE'] == $filemodtime) || (@$_SERVER['HTTP_IF_NONE_MATCH'] == $filemodtime)){ header ("HTTP/1.1 304 Not Modified"); exit; } @@ -154,7 +154,7 @@ do { foreach ($master_array[("$thisdate")] as $event_times) { foreach ($event_times as $uid=>$val) { #handle multiday all day events - if(!$val["event_start"]){ + if(!isset($val["event_start"])){ if (isset($uid_arr[$uid])){ $uid_arr[$uid] .= "+$dayofweek" ; continue; -- cgit v1.2.3