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:
authorBen Burgess <88810029+bx80@users.noreply.github.com>2022-08-01 01:38:35 +0300
committerGitHub <noreply@github.com>2022-08-01 01:38:35 +0300
commit3d1ed3f5585062e8eb6e38efab49b096e44155e4 (patch)
tree24516359d93159d3b6b4ff4663b0a97733639658
parent888f167a3cc10b6197cfcb71c2cea62fcd49f4fb (diff)
Update core/Updater/Migration/Db/Sql.phpm-19572-ignore-errorcode-config
Co-authored-by: Stefan Giehl <stefan@matomo.org>
-rw-r--r--core/Updater/Migration/Db/Sql.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Updater/Migration/Db/Sql.php b/core/Updater/Migration/Db/Sql.php
index 7b4bbe5a97..638622d6fb 100644
--- a/core/Updater/Migration/Db/Sql.php
+++ b/core/Updater/Migration/Db/Sql.php
@@ -43,7 +43,7 @@ class Sql extends DbMigration
}
$this->sql = $sql;
- $globalErrorCodesToIgnore = Config::getInstance()->database['ignore_error_codes'];
+ $globalErrorCodesToIgnore = Config::getInstance()->database['ignore_error_codes'] ?? [];
$this->errorCodesToIgnore = array_merge($errorCodesToIgnore, (is_array($globalErrorCodesToIgnore) ? $globalErrorCodesToIgnore : []));
}