diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-01-05 01:25:55 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-01-12 05:02:22 +0300 |
commit | 68fa1cb8e5c7cd4bd3e3939f9afb33fe581f801f (patch) | |
tree | dfed61150a7d74ea439a713da5d0abed7447edab /core/Scheduler/Timetable.php | |
parent | 7688f25ce902b1dda0a16b9680dec305de2ae815 (diff) |
Simplified logic
Diffstat (limited to 'core/Scheduler/Timetable.php')
-rw-r--r-- | core/Scheduler/Timetable.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Scheduler/Timetable.php b/core/Scheduler/Timetable.php index 7e811c8378..5c9bc69696 100644 --- a/core/Scheduler/Timetable.php +++ b/core/Scheduler/Timetable.php @@ -80,7 +80,11 @@ class Timetable { $forceTaskExecution = (defined('DEBUG_FORCE_SCHEDULED_TASKS') && DEBUG_FORCE_SCHEDULED_TASKS); - return $forceTaskExecution || ($this->taskHasBeenScheduledOnce($taskName) && time() >= $this->timetable[$taskName]); + if ($forceTaskExecution) { + return true; + } + + return $this->taskHasBeenScheduledOnce($taskName) && time() >= $this->timetable[$taskName]; } /** |