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
path: root/js
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-09-13 19:02:21 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-09-13 19:02:21 +0400
commiteb9313d3778b61c8d9ac06119a31aa199d47ea33 (patch)
treee7c20812a266ef935c222054dcb34ec829119738 /js
parent244b091caf9b75acb510d87e0f3e74e2ac57cf2d (diff)
might fix an issue on IE6
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/piwik.js b/js/piwik.js
index bae7cd3d21..ae14b1d0a8 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -1379,8 +1379,8 @@ if (typeof Piwik !== 'object') {
return this.htmlCollectionToArray(foundNodes);
}
- if (!nodeToSearch.children) {
- return;
+ if (!nodeToSearch.children || !nodeToSearch.children.length) {
+ return [];
}
var index, child;