diff options
-rw-r--r-- | core/Translate.php | 3 |
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); } |