aboutsummaryrefslogtreecommitdiffstats
path: root/ical_parser.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-09-21 15:18:04 +0000
committerChad Little <clittle@users.sourceforge.net>2002-09-21 15:18:04 +0000
commit349e406873400934d4b48bf523d62c0c66037a0e (patch)
tree24815d9f05db61c3ef4fef8820ed4f2350c22f7a /ical_parser.php
parentc58562e0152407376cbebb8140df8372a4a32456 (diff)
downloadphpicalendar-349e406873400934d4b48bf523d62c0c66037a0e.tar.gz
phpicalendar-349e406873400934d4b48bf523d62c0c66037a0e.tar.bz2
phpicalendar-349e406873400934d4b48bf523d62c0c66037a0e.zip
Added is_array for blank calendars.
Diffstat (limited to 'ical_parser.php')
-rw-r--r--ical_parser.php10
1 files changed, 6 insertions, 4 deletions
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 "<pre>";
-print_r($master_array);
+//print_r($master_array);
//print_r($day_array);
//print_r($rrule);
//print "</pre>";

© 2014-2024 Faster IT GmbH | imprint | privacy policy