aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/FreeBusyGenerator.php
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-05-31 23:12:55 +0200
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-06-01 00:08:40 +0200
commitea1997128529965fa92f1a182c2a7ad02b88d3e3 (patch)
treea96be42ef1e00f370bfba8ddf138917b8e0aa581 /vendor/sabre/vobject/lib/FreeBusyGenerator.php
parent14229d0dd3205ea1e85d2c26d6c79bd68d19eda3 (diff)
downloadvolse-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.php6
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