diff options
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_logic.c | 2 |
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; } |