diff --git a/scheduler.rst b/scheduler.rst index d23df3b3044..b1ef369b677 100644 --- a/scheduler.rst +++ b/scheduler.rst @@ -320,7 +320,7 @@ For example, if you want to send customer reports daily except for holiday perio } // loop until you get the next run date that is not a holiday - while (!$this->isHoliday($nextRun) { + while ($this->isHoliday($nextRun)) { $nextRun = $this->inner->getNextRunDate($nextRun); }