diff options
author | robocoder <anthon.pang@gmail.com> | 2009-10-14 23:28:45 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2009-10-14 23:28:45 +0400 |
commit | afd83a9eedd5e3d14925e2d3d8cc3d5b46bec7a8 (patch) | |
tree | 489bb2acfafe8650a63cedc506a9379f55302251 /core/Translate.php | |
parent | dcc553f9901a7bb103a14ae35618377d7f33516a (diff) |
fixes #1003 - filter empty translations
git-svn-id: http://dev.piwik.org/svn/trunk@1501 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Translate.php')
-rw-r--r-- | core/Translate.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Translate.php b/core/Translate.php index 40b4b96969..937fd10ea2 100644 --- a/core/Translate.php +++ b/core/Translate.php @@ -60,7 +60,7 @@ class Piwik_Translate $GLOBALS['Piwik_translations'] = array(); } // we could check that no string overlap here - $GLOBALS['Piwik_translations'] = array_merge($GLOBALS['Piwik_translations'], $translation); + $GLOBALS['Piwik_translations'] = array_filter(array_merge($GLOBALS['Piwik_translations'], $translation), 'strlen'); } /** |