Skip to content

Commit 38d0b47

Browse files
committed
Making sure these values are empty.
Fixes #295.
1 parent c138ba0 commit 38d0b47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Recur/RRuleIterator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,15 +338,15 @@ protected function nextDaily() {
338338
return;
339339
}
340340

341-
if (isset($this->byHour)) {
341+
if (!empty($this->byHour)) {
342342
$recurrenceHours = $this->getHours();
343343
}
344344

345-
if (isset($this->byDay)) {
345+
if (!empty($this->byDay)) {
346346
$recurrenceDays = $this->getDays();
347347
}
348348

349-
if (isset($this->byMonth)) {
349+
if (!empty($this->byMonth)) {
350350
$recurrenceMonths = $this->getMonths();
351351
}
352352

@@ -511,7 +511,7 @@ protected function nextYearly() {
511511
$currentDayOfMonth = $this->currentDate->format('j');
512512

513513
// No sub-rules, so we just advance by year
514-
if (!$this->byMonth) {
514+
if (empty($this->byMonth)) {
515515

516516
// Unless it was a leap day!
517517
if ($currentMonth == 2 && $currentDayOfMonth == 29) {

0 commit comments

Comments
 (0)