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:
authorThomas Steur <tsteur@users.noreply.github.com>2017-12-07 05:31:07 +0300
committerGitHub <noreply@github.com>2017-12-07 05:31:07 +0300
commitbc029c1ffaeb2952cb1875db1c036a2cd3d0d376 (patch)
tree4dd71253fb614e2180bdba2a8741c08b2ced06e6
parentb743af045f73d390d96a58e29089f993b1cded33 (diff)
remove unneeded comparrison
-rw-r--r--core/CronArchive.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/CronArchive.php b/core/CronArchive.php
index abd498f9d8..64b2b535e1 100644
--- a/core/CronArchive.php
+++ b/core/CronArchive.php
@@ -289,7 +289,7 @@ class CronArchive
*/
public function main()
{
- if ($this->isMaintenanceModeEnabled() == 1) {
+ if ($this->isMaintenanceModeEnabled()) {
$this->logger->info("Archiving won't run because maintenance mode is enabled");
return;
}
@@ -367,7 +367,7 @@ class CronArchive
do {
- if ($this->isMaintenanceModeEnabled() == 1) {
+ if ($this->isMaintenanceModeEnabled()) {
$this->logger->info("Archiving will stop now because maintenance mode is enabled");
return;
}