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:
authorStefan Giehl <stefan@matomo.org>2020-06-03 07:44:24 +0300
committerGitHub <noreply@github.com>2020-06-03 07:44:24 +0300
commitcaf7dbf0fdd3e91a47fa49f297ed18a75ddeff9d (patch)
treec08c5a9ca4880bf41e30040c80e377452f0135a5 /plugins
parent7c12ec1754fb2ee1913c36f0c5a178ba8655830b (diff)
fix #16002 (#16003)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/CoreUpdater/Tasks.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreUpdater/Tasks.php b/plugins/CoreUpdater/Tasks.php
index f3ecae955d..4e313e6307 100644
--- a/plugins/CoreUpdater/Tasks.php
+++ b/plugins/CoreUpdater/Tasks.php
@@ -22,7 +22,7 @@ class Tasks extends \Piwik\Plugin\Tasks
$dbSettings = new \Piwik\Db\Settings();
$settings = StaticContainer::get('Piwik\Plugins\CoreUpdater\SystemSettings');
- if ($dbSettings->getUsedCharset() !== 'utf8mb4' && DbHelper::getDefaultCharset() === 'utf8mb4' && $settings->updateToUtf8mb4->getValue()) {
+ if ($dbSettings->getUsedCharset() !== 'utf8mb4' && DbHelper::getDefaultCharset() === 'utf8mb4' && !empty($settings->updateToUtf8mb4) && $settings->updateToUtf8mb4->getValue()) {
$this->daily('convertToUtf8mb4', null, self::HIGHEST_PRIORITY);
}
}
@@ -50,4 +50,4 @@ class Tasks extends \Piwik\Plugin\Tasks
$settings = StaticContainer::get('Piwik\Plugins\CoreUpdater\SystemSettings');
$settings->updateToUtf8mb4->setValue(false);
}
-} \ No newline at end of file
+}