fix: Undefined variables

This commit is contained in:
Pierre Rudloff 2018-07-03 19:52:24 +02:00
parent f1cf0a2cdc
commit 159ea245a8
1 changed files with 7 additions and 0 deletions

View File

@ -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="'.