From: Michael M Slusarz Date: Thu, 12 Nov 2009 20:21:25 +0000 (-0700) Subject: Fix flag checking for 'negative' flags if no other flags exist X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6e6146a041c685ed2e34bfb2ec45ef309b96207b;p=horde.git Fix flag checking for 'negative' flags if no other flags exist --- diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index bb596e10e..b5488bab0 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -2464,7 +2464,7 @@ var DimpBase = { hasFlag: function(f, r) { - return r.flag && this.convertFlag(f, r.flag.include(f)); + return this.convertFlag(f, r.flag ? r.flag.include(f) : false); }, convertFlag: function(f, set)