summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-07 11:14:09 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-07 11:15:03 (GMT)
commit1519a5559d1527a7b5d0c3fbda62d8c7a1be0c3f (patch)
treea6b73894e896065da662efbc12dc8b3664d923a9
parentc0bc29bb9c11420239f929a8bc10bf9bcea409d7 (diff)
downloadkolab-wap-1519a5559d1527a7b5d0c3fbda62d8c7a1be0c3f.tar.gz
Inverse the logic on declaring an array with a positive, non-zero length as empty
-rw-r--r--public_html/js/kolab_admin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index 0a73bde..d37c011 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -1002,7 +1002,7 @@ function kolab_admin()
is_empty = 0;
if ($.isArray(data[n]))
- is_empty = data[n].length;
+ is_empty = (data[n].length == 0) ? 1 : 0;
else
is_empty = !data[n];