diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-06-03 07:44:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 07:44:24 +0300 |
commit | caf7dbf0fdd3e91a47fa49f297ed18a75ddeff9d (patch) | |
tree | c08c5a9ca4880bf41e30040c80e377452f0135a5 /plugins | |
parent | 7c12ec1754fb2ee1913c36f0c5a178ba8655830b (diff) |
fix #16002 (#16003)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreUpdater/Tasks.php | 4 |
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 +} |