[Pkg-owncloud-commits] [php-sabre-vobject] 53/106: Fixed another bug.
David Prévot
taffit at moszumanska.debian.org
Fri Aug 22 15:11:02 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit a9450c5cc1e03b7f72182734d90e62e36830dd9d
Author: Evert Pot <me at evertpot.com>
Date: Sat Aug 2 14:42:31 2014 -0400
Fixed another bug.
---
lib/Sabre/VObject/RecurrenceIterator.php | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/Sabre/VObject/RecurrenceIterator.php b/lib/Sabre/VObject/RecurrenceIterator.php
index 43b8350..ee726aa 100644
--- a/lib/Sabre/VObject/RecurrenceIterator.php
+++ b/lib/Sabre/VObject/RecurrenceIterator.php
@@ -283,9 +283,13 @@ class RecurrenceIterator implements \Iterator {
// We need to do this until we find a date that's not in the
// exception list.
do {
+ if (!$this->rruleParser->valid()) {
+ $nextDate = null;
+ break;
+ }
$this->rruleParser->next();
$nextDate = $this->rruleParser->current();
- } while(in_array($nextDate, $this->exceptions));
+ } while(isset($this->exceptions[$nextDate->getTimeStamp()]));
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list