mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-28 03:04:15 +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.
|
* follow the iCalendar standard.
|
||||||
*/
|
*/
|
||||||
function RRule( $start, $rrule ) {
|
function RRule( $start, $rrule ) {
|
||||||
|
if ( is_object($start) ) {
|
||||||
|
$this->_first = $start;
|
||||||
|
}
|
||||||
|
else {
|
||||||
$this->_first = new iCalDate($start);
|
$this->_first = new iCalDate($start);
|
||||||
|
}
|
||||||
$this->_finished = false;
|
$this->_finished = false;
|
||||||
$this->_started = false;
|
$this->_started = false;
|
||||||
$this->_dates = array( $this->_first );
|
$this->_dates = array( $this->_first );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user