diff --git a/lib/Controller/Aria2Controller.php b/lib/Controller/Aria2Controller.php index 8c03e68..2fa121b 100644 --- a/lib/Controller/Aria2Controller.php +++ b/lib/Controller/Aria2Controller.php @@ -224,7 +224,7 @@ class Aria2Controller extends Controller $tmp = []; $actions = []; $filename = sprintf('%s', $folderLink, $filename); - $fileInfo = sprintf(' %s | %s', $extra ? $extra['link'] : 'nolink', $total, date("Y-m-d H:i:s", $timestamp)); + $fileInfo = sprintf(' %s | %s', $extra["link"] ?? 'nolink', $total, date("Y-m-d H:i:s", $timestamp)); $tmp['filename'] = array($filename, $fileInfo); if ($this->aria2->methodName === "tellStopped") {