diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-01-17 05:56:12 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-01-17 05:56:12 +0400 |
commit | c3de64c4fe5794e108384ea76103a64e7badb1a0 (patch) | |
tree | e54df0d789de47d8e739a5c3ef9cda6171a27cf3 /core | |
parent | c6e5c1e0bf965f29dc4782c3b2fe456e652a7e62 (diff) |
Trying to fix bug
http://forum.piwik.org/read.php?8,110075
Diffstat (limited to 'core')
-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); } |