From ffcb80692ae7b5c10f0ef7df4b9066558eec2c7b Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Sun, 4 Nov 2018 14:32:33 -0500 Subject: [PATCH] Plugin: Whispeak: Fix undefined path variable --- plugin/whispeakauth/ajax/record_audio.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/whispeakauth/ajax/record_audio.php b/plugin/whispeakauth/ajax/record_audio.php index 6c20a632e8..798f277642 100644 --- a/plugin/whispeakauth/ajax/record_audio.php +++ b/plugin/whispeakauth/ajax/record_audio.php @@ -56,7 +56,7 @@ if (false === $path) { exit; } -$originFullPath = api_get_path(SYS_UPLOAD_PATH).'whispeakauth'.$path['path_to_save']; +$newFullPath = $originFullPath = api_get_path(SYS_UPLOAD_PATH).'whispeakauth'.$path['path_to_save']; $fileType = mime_content_type($originFullPath); if ('wav' !== substr($fileType, -3)) {