aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-20 05:05:25 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-20 05:05:25 +0000
commitd31c02e7d5bc65b9f3a3b747e4bd56ffda38e053 (patch)
tree52247f74195ccb1b52a49ab39f406c5b53bafa8d /functions
parentb8e244056c990c65a859c1252785ffa7f62fc4a8 (diff)
downloadphpicalendar-d31c02e7d5bc65b9f3a3b747e4bd56ffda38e053.tar.gz
phpicalendar-d31c02e7d5bc65b9f3a3b747e4bd56ffda38e053.tar.bz2
phpicalendar-d31c02e7d5bc65b9f3a3b747e4bd56ffda38e053.zip
add default_path to search.php
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 393a076..87a3cf0 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -388,7 +388,7 @@ foreach ($cal_filelist as $cal_key=>$filename) {
break;
case 'DURATION':
if (($first_duration == TRUE) && (!stristr($field, '=DURATION'))) {
- ereg ('^P([0-9]{1,2}[W])?([0-9]{1,2}[D])?([T]{0,1})?([0-9]{1,2}[H])?([0-9]{1,2}[M])?([0-9]{1,2}[S])?', $data, $duration);
+ ereg ('^P([0-9]{1,2}[W])?([0-9]{1,3}[D])?([T]{0,1})?([0-9]{1,2}[H])?([0-9]{1,2}[M])?([0-9]{1,2}[S])?', $data, $duration);
$weeks = str_replace('W', '', $duration[1]);
$days = str_replace('D', '', $duration[2]);
$hours = str_replace('H', '', $duration[4]);

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