From d31c02e7d5bc65b9f3a3b747e4bd56ffda38e053 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Sat, 20 Dec 2008 05:05:25 +0000 Subject: add default_path to search.php --- functions/ical_parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions') 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]); -- cgit v1.2.3