aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_logic.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-11 23:16:27 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-11 23:16:27 +0000
commit5ba9ee4d047beceb66a290ed1efba2207688988c (patch)
treeb6da7d009f84a65b4558233606080124c7dc8ec8 /funcs/func_logic.c
parentd59e49c0b52305f24ea269da93737e5635a6ed3b (diff)
Merged revisions 27051 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r27051 | tilghman | 2006-05-11 18:02:57 -0500 (Thu, 11 May 2006) | 2 lines Bug 7086 - pbx_checkcondition substitution, so that arbitrary strings are true (for regex) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@27052 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_logic.c')
-rw-r--r--funcs/func_logic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_logic.c b/funcs/func_logic.c
index aebcb4c17..1543a27f3 100644
--- a/funcs/func_logic.c
+++ b/funcs/func_logic.c
@@ -110,7 +110,7 @@ static int acf_if(struct ast_channel *chan, char *cmd, char *data, char *buf,
if (iffalse)
iffalse = ast_strip_quoted(iffalse, "\"", "\"");
- ast_copy_string(buf, ast_true(expr) ? iftrue : iffalse, len);
+ ast_copy_string(buf, pbx_checkcondition(expr) ? iftrue : iffalse, len);
return 0;
}