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:
-rw-r--r--core/Translate.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Translate.php b/core/Translate.php
index 27570fb1cc..e0954b6fee 100644
--- a/core/Translate.php
+++ b/core/Translate.php
@@ -87,6 +87,9 @@ class Translate
if (!isset($GLOBALS['Piwik_translations'])) {
$GLOBALS['Piwik_translations'] = array();
}
+ if (empty($translation)) {
+ return;
+ }
// we could check that no string overlap here
$GLOBALS['Piwik_translations'] = array_replace_recursive($GLOBALS['Piwik_translations'], $translation);
}