From: Anthony Minessale Date: Mon, 9 Jan 2012 19:54:54 +0000 (-0600) Subject: add true check instead of existance check X-Git-Tag: v1.2-rc1~19^2~1^2~87 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de3e008ba0b7801a1eb18bb8ed3808e65c06d822;p=thirdparty%2Ffreeswitch.git add true check instead of existance check --- diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index ea6724037c..5449cb5e0d 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -283,7 +283,7 @@ static switch_status_t parse_get_var(const char *tag_name, client_t *client, swi (!client->profile->var_params.get_var_list || switch_event_check_permission_list(client->profile->var_params.get_var_list, var))) { const char *vval = switch_channel_get_variable(client->channel, var); if (vval) { - switch_event_add_header_string(perm ? client->params : client->one_time_params, SWITCH_STACK_BOTTOM, var, vval); + switch_event_add_header_string(switch_true(perm) ? client->params : client->one_time_params, SWITCH_STACK_BOTTOM, var, vval); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "variable %s permission denied!\n", var);