Update voicemail_greetings.php (#5328)

allow wav OR mp3 upload
This commit is contained in:
chansizzle 2020-07-02 16:56:22 -06:00 committed by GitHub
parent 2d5745c283
commit f845711cda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@
$file_ext = substr($_FILES['file']['name'], -4);
//check file extension
if ($file_ext == '.wav' || $file_ext != '.mp3') {
if ($file_ext == '.wav' || $file_ext == '.mp3') {
//find the next available
for ($i = 1; $i < 10; $i++) {
@ -667,4 +667,4 @@
fclose($fp);
}
?>
?>