From 349e406873400934d4b48bf523d62c0c66037a0e Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 21 Sep 2002 15:18:04 +0000 Subject: Added is_array for blank calendars. --- ical_parser.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'ical_parser.php') diff --git a/ical_parser.php b/ical_parser.php index 60a5dbd..5dea224 100644 --- a/ical_parser.php +++ b/ical_parser.php @@ -408,12 +408,14 @@ foreach($contents as $line) { } } } - -ksort($master_array); -reset($master_array); +// Sort the array by absolute date. +if (is_array($master_array)) { + ksort($master_array); + reset($master_array); +} //If you want to see the values in the arrays, uncomment below. //print "
";
-print_r($master_array);
+//print_r($master_array);
 //print_r($day_array);
 //print_r($rrule);			
 //print "
"; -- cgit v1.2.3