From 159ea245a88859c1b03b13e785bc2aff12738931 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Tue, 3 Jul 2018 19:52:24 +0200 Subject: [PATCH] fix: Undefined variables --- controllers/FrontController.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/controllers/FrontController.php b/controllers/FrontController.php index 43fbf14..68f16ce 100644 --- a/controllers/FrontController.php +++ b/controllers/FrontController.php @@ -212,6 +212,13 @@ class FrontController */ private function getConvertedAudioResponse(Request $request, Response $response, array $params, $password = null) { + if (!isset($params['from'])) { + $params['from'] = ''; + } + if (!isset($params['to'])) { + $params['to'] = ''; + } + $response = $response->withHeader( 'Content-Disposition', 'attachment; filename="'.