mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-26 02:44:29 +00:00
Allow first parameter to RRule constructor to be an iCalDate.
This commit is contained in:
parent
818ade993c
commit
2e50a0721a
@ -664,7 +664,12 @@ class RRule {
|
||||
* follow the iCalendar standard.
|
||||
*/
|
||||
function RRule( $start, $rrule ) {
|
||||
$this->_first = new iCalDate($start);
|
||||
if ( is_object($start) ) {
|
||||
$this->_first = $start;
|
||||
}
|
||||
else {
|
||||
$this->_first = new iCalDate($start);
|
||||
}
|
||||
$this->_finished = false;
|
||||
$this->_started = false;
|
||||
$this->_dates = array( $this->_first );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user