From 6e6146a041c685ed2e34bfb2ec45ef309b96207b Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 12 Nov 2009 13:21:25 -0700 Subject: [PATCH] Fix flag checking for 'negative' flags if no other flags exist --- imp/js/DimpBase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0