Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-01-05 01:25:55 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-01-12 05:02:22 +0300
commit68fa1cb8e5c7cd4bd3e3939f9afb33fe581f801f (patch)
treedfed61150a7d74ea439a713da5d0abed7447edab /core/Scheduler/Timetable.php
parent7688f25ce902b1dda0a16b9680dec305de2ae815 (diff)
Simplified logic
Diffstat (limited to 'core/Scheduler/Timetable.php')
-rw-r--r--core/Scheduler/Timetable.php6
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];
}
/**