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 'js/piwik.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;