File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments