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:
Diffstat (limited to 'plugins/Morpheus/javascripts/piwikHelper.js')
-rw-r--r--plugins/Morpheus/javascripts/piwikHelper.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Morpheus/javascripts/piwikHelper.js b/plugins/Morpheus/javascripts/piwikHelper.js
index 4cfc22e51d..390d257041 100644
--- a/plugins/Morpheus/javascripts/piwikHelper.js
+++ b/plugins/Morpheus/javascripts/piwikHelper.js
@@ -6,8 +6,9 @@
*/
function _pk_translate(translationStringId, values) {
-
- if( typeof(piwik_translations[translationStringId]) != 'undefined' ){
+ if (typeof(piwik_translations) !== 'undefined'
+ && typeof(piwik_translations[translationStringId]) != 'undefined'
+ ) {
var translation = piwik_translations[translationStringId];
if (typeof values != 'undefined' && values && values.length) {
values.unshift(translation);