diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js index 3db117f3b..c94db5ca3 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3499,9 +3499,9 @@ function rcube_webmail() text_obj = item.getElementsByTagName('a')[0]; reg = /\s+\([0-9]+\)$/i; - div = item.getElementsByTagName('div')[0]; - childcount = 0; - if (div.className.match(/collapsed/)) + childcount = 0; + if ((div = item.getElementsByTagName('div')[0]) && + div.className.match(/collapsed/)) { // add children's counters children = item.getElementsByTagName('li'); |