diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-05-31 23:12:55 +0200 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-06-01 00:08:40 +0200 |
commit | ea1997128529965fa92f1a182c2a7ad02b88d3e3 (patch) | |
tree | a96be42ef1e00f370bfba8ddf138917b8e0aa581 /vendor/sabre/vobject/lib/FreeBusyGenerator.php | |
parent | 14229d0dd3205ea1e85d2c26d6c79bd68d19eda3 (diff) | |
download | volse-hubzilla-ea1997128529965fa92f1a182c2a7ad02b88d3e3.tar.gz volse-hubzilla-ea1997128529965fa92f1a182c2a7ad02b88d3e3.tar.bz2 volse-hubzilla-ea1997128529965fa92f1a182c2a7ad02b88d3e3.zip |
:arrow_up:Update Sabre libraries.
Diffstat (limited to 'vendor/sabre/vobject/lib/FreeBusyGenerator.php')
-rw-r--r-- | vendor/sabre/vobject/lib/FreeBusyGenerator.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/sabre/vobject/lib/FreeBusyGenerator.php b/vendor/sabre/vobject/lib/FreeBusyGenerator.php index e33621090..e30b136c4 100644 --- a/vendor/sabre/vobject/lib/FreeBusyGenerator.php +++ b/vendor/sabre/vobject/lib/FreeBusyGenerator.php @@ -2,8 +2,8 @@ namespace Sabre\VObject; -use DateTimeInterface; use DateTimeImmutable; +use DateTimeInterface; use DateTimeZone; use Sabre\VObject\Component\VCalendar; use Sabre\VObject\Recur\EventIterator; @@ -152,7 +152,7 @@ class FreeBusyGenerator { $this->objects = []; foreach ($objects as $object) { - if (is_string($object)) { + if (is_string($object) || is_resource($object)) { $this->objects[] = Reader::read($object); } elseif ($object instanceof Component) { $this->objects[] = $object; @@ -292,7 +292,7 @@ class FreeBusyGenerator { list($higherStart, $higherEnd) = $higherVavail->getEffectiveStartEnd(); if ( (is_null($higherStart) || $higherStart < $compStart) && - (is_null($higherEnd) || $higherEnd > $compEnd) + (is_null($higherEnd) || $higherEnd > $compEnd) ) { // Component is fully covered by a higher priority |