[mod_voicemail] fix vm_fsdb_msg_list

This commit is contained in:
Dragos Oancea 2022-07-06 15:26:43 +03:00
parent 7a41bdeb40
commit 871cc585b1
1 changed files with 1 additions and 1 deletions

View File

@ -5430,7 +5430,7 @@ SWITCH_STANDARD_API(vm_fsdb_msg_list_function)
if (!msg_order) {
msg_order = "ASC";
} else if (strcasecmp(msg_order, "ASC") || strcasecmp(msg_order, "DESC")) {
} else if (strcasecmp(msg_order, "ASC") && strcasecmp(msg_order, "DESC")) {
stream->write_function(stream, "-ERR Bad Argument: '%s'\n", msg_order);
goto done;
}