diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2009-01-02 07:12:12 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2009-01-02 07:12:12 +0000 |
commit | c60246816752a18ba37b8f3508799acd17686b30 (patch) | |
tree | b010ee90fb0b568bd3a84f4f4c52b18b80d0645a /functions/ical_parser.php | |
parent | 281d63eedb805ec330a5572b85f48896981fca16 (diff) | |
download | phpicalendar-c60246816752a18ba37b8f3508799acd17686b30.tar.gz phpicalendar-c60246816752a18ba37b8f3508799acd17686b30.tar.bz2 phpicalendar-c60246816752a18ba37b8f3508799acd17686b30.zip |
add download event to event popup
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r-- | functions/ical_parser.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 5e1afc6..aaaba93 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -126,7 +126,6 @@ foreach ($cal_filelist as $cal_key=>$filename) { $nextline = ereg_replace("[\r\n]", "", $nextline); } $line = trim(stripslashes($line)); - switch ($line) { case 'BEGIN:VFREEBUSY': case 'BEGIN:VEVENT': @@ -150,6 +149,7 @@ foreach ($cal_filelist as $cal_key=>$filename) { $url = ''; $geo = ''; $type = ''; + $other = ''; $wkst = 'MO'; $except_dates = array(); @@ -440,6 +440,8 @@ foreach ($cal_filelist as $cal_key=>$filename) { case 'URL': $url = $data; break; + default: + if(strpos(':',$data) > 1) $other .= $data; } } } |