aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-10 16:42:19 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-10 16:42:19 +0000
commit869c5e2e6dc4cba418c9ada13bfe9fe0c1986f2f (patch)
treeca073731b0e73de082af4ceb814f7269356d685d /funcs
parentf3f49be96bca63d5d50b702d1536c046dd58b16e (diff)
Lost of a bit of logic when this was simplified between 1.2 and 1.4 (Bug 8117)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44808 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-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 9fe23b20b..daf50142f 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;
}