diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-28 19:30:41 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-28 19:30:41 +0000 |
commit | d482264b6af8598ce50677ac6a8f781e219b7d6f (patch) | |
tree | 5bff034467e4ed8e1b1fe442c7de643f112da7f7 /functions/parse/recur_functions.php | |
parent | fc3e1a8590046c858b2ddebdf6c43df8240e9a97 (diff) | |
download | phpicalendar-d482264b6af8598ce50677ac6a8f781e219b7d6f.tar.gz phpicalendar-d482264b6af8598ce50677ac6a8f781e219b7d6f.tar.bz2 phpicalendar-d482264b6af8598ce50677ac6a8f781e219b7d6f.zip |
fix misc bugs; rewrite some places where warnings squelched with @; require php5.1 or greater
Diffstat (limited to 'functions/parse/recur_functions.php')
-rw-r--r-- | functions/parse/recur_functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functions/parse/recur_functions.php b/functions/parse/recur_functions.php index 0526e1d..e936c64 100644 --- a/functions/parse/recur_functions.php +++ b/functions/parse/recur_functions.php @@ -1,4 +1,4 @@ -<?php +<?php /* from the std "BYxxx rule parts modify the recurrence in some manner. BYxxx rule parts for a period of time which is the same or greater than the frequency generally reduce or limit the number of occurrences of the recurrence generated. For example, "FREQ=DAILY;BYMONTH=1" reduces the number of recurrence instances from all days (if BYMONTH tag is not present) to all days in January. BYxxx rule parts for a period of time less than the frequency generally increase or expand the number of occurrences of the recurrence. For example, "FREQ=YEARLY;BYMONTH=1,2" increases the number of days within the yearly recurrence set from 1 (if BYMONTH tag is not present) to 2. @@ -28,6 +28,7 @@ function add_recur($times,$freq=''){ $until_date = date("Ymd",$end_range_unixtime); foreach ($times as $time){ #echo "time:". date("Ymd",$time)."\n"; + if (!isset($time) || $time == '') continue; $date = date("Ymd",$time); $time = strtotime("$date 12:00:00"); # day offset fixes shifts across day boundaries due to time diffs. |