fix: Undefined variables
This commit is contained in:
parent
f1cf0a2cdc
commit
159ea245a8
1 changed files with 7 additions and 0 deletions
|
@ -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="'.
|
||||
|
|
Loading…
Reference in a new issue