diff options
Diffstat (limited to 'js/piwik.js')
-rw-r--r-- | js/piwik.js | 4 |
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; |