summaryrefslogtreecommitdiff
path: root/source4/lib/appweb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-20 11:55:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:50 -0500
commit5e9988708f30ce093ab0f48ebb02787c9e418331 (patch)
tree5cc088c86ca96964e474a44a13dde1bac3ba3514 /source4/lib/appweb
parent24d2107324982d8ad69fb89d13037ba591f49534 (diff)
downloadsamba-5e9988708f30ce093ab0f48ebb02787c9e418331.tar.gz
samba-5e9988708f30ce093ab0f48ebb02787c9e418331.tar.bz2
samba-5e9988708f30ce093ab0f48ebb02787c9e418331.zip
r8651: fixed a boolean expression bug (submitted upstream)
(This used to be commit bd4c388cd2653823e012f1cd8c14832ee032eb11)
Diffstat (limited to 'source4/lib/appweb')
-rw-r--r--source4/lib/appweb/ejs/ejsParser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/appweb/ejs/ejsParser.c b/source4/lib/appweb/ejs/ejsParser.c
index 1f110e7ac4..dadd3eac11 100644
--- a/source4/lib/appweb/ejs/ejsParser.c
+++ b/source4/lib/appweb/ejs/ejsParser.c
@@ -1641,6 +1641,9 @@ static int evalExpr(Ejs *ep, MprVar *lhs, int rel, MprVar *rhs)
case EJS_EXPR_NOTEQ:
lval = lhs->type != rhs->type;
break;
+ case EJS_EXPR_BOOL_COMP:
+ lval = ! mprVarToBool(rhs);
+ break;
default:
lval = 0;
}