Merge pull request #1710 from dragos-oancea/vm_fsdb_msg_list-fix

[mod_voicemail] fix vm_fsdb_msg_list
This commit is contained in:
Andrey Volk 2022-07-06 20:22:28 +03:00 committed by GitHub
commit 6e5822e5ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}