[Pkg-owncloud-commits] [php-sabre-vobject] 27/30: Making sure these values are empty.
David Prévot
taffit at moszumanska.debian.org
Sun Mar 13 00:53:05 UTC 2016
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 38d0b470fb823472d1e79d26546aa35a85452c53
Author: Evert Pot <me at evertpot.com>
Date: Sat Mar 12 18:55:00 2016 -0500
Making sure these values are empty.
Fixes #295.
---
lib/Recur/RRuleIterator.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/Recur/RRuleIterator.php b/lib/Recur/RRuleIterator.php
index d3256c1..402e2de 100644
--- a/lib/Recur/RRuleIterator.php
+++ b/lib/Recur/RRuleIterator.php
@@ -338,15 +338,15 @@ class RRuleIterator implements Iterator {
return;
}
- if (isset($this->byHour)) {
+ if (!empty($this->byHour)) {
$recurrenceHours = $this->getHours();
}
- if (isset($this->byDay)) {
+ if (!empty($this->byDay)) {
$recurrenceDays = $this->getDays();
}
- if (isset($this->byMonth)) {
+ if (!empty($this->byMonth)) {
$recurrenceMonths = $this->getMonths();
}
@@ -511,7 +511,7 @@ class RRuleIterator implements Iterator {
$currentDayOfMonth = $this->currentDate->format('j');
// No sub-rules, so we just advance by year
- if (!$this->byMonth) {
+ if (empty($this->byMonth)) {
// Unless it was a leap day!
if ($currentMonth == 2 && $currentDayOfMonth == 29) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list