From eb9313d3778b61c8d9ac06119a31aa199d47ea33 Mon Sep 17 00:00:00 2001 From: Thomas Steur <thomas.steur@googlemail.com> Date: Sat, 13 Sep 2014 17:02:21 +0200 Subject: [PATCH] might fix an issue on IE6 --- js/piwik.js | 4 ++-- 1 file 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; -- GitLab