diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-09-13 19:02:21 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-09-13 19:02:21 +0400 |
commit | eb9313d3778b61c8d9ac06119a31aa199d47ea33 (patch) | |
tree | e7c20812a266ef935c222054dcb34ec829119738 /js | |
parent | 244b091caf9b75acb510d87e0f3e74e2ac57cf2d (diff) |
might fix an issue on IE6
Diffstat (limited to '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; |