From: Tilghman Lesher Date: Tue, 10 Oct 2006 16:42:19 +0000 (+0000) Subject: Lost of a bit of logic when this was simplified between 1.2 and 1.4 (Bug 8117) X-Git-Tag: 1.4.0-beta3~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88873fbafaac034f074a54f2a7243c09ee1cd8e1;p=thirdparty%2Fasterisk.git Lost of a bit of logic when this was simplified between 1.2 and 1.4 (Bug 8117) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44808 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_logic.c b/funcs/func_logic.c index 9fe23b20b2..daf50142f7 100644 --- a/funcs/func_logic.c +++ b/funcs/func_logic.c @@ -111,7 +111,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, pbx_checkcondition(expr) ? iftrue : iffalse, len); + ast_copy_string(buf, pbx_checkcondition(expr) ? (S_OR(iftrue, "")) : (S_OR(iffalse, "")), len); return 0; }