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:
authorrobocoder <anthon.pang@gmail.com>2009-10-14 23:28:45 +0400
committerrobocoder <anthon.pang@gmail.com>2009-10-14 23:28:45 +0400
commitafd83a9eedd5e3d14925e2d3d8cc3d5b46bec7a8 (patch)
tree489bb2acfafe8650a63cedc506a9379f55302251 /core/Translate.php
parentdcc553f9901a7bb103a14ae35618377d7f33516a (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.php2
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');
}
/**