From 1e8e4500f69715efa79e8f23acb8b909bd5c58ef Mon Sep 17 00:00:00 2001 From: huangjx Date: Sun, 24 Apr 2022 15:56:56 +0800 Subject: [PATCH] fixed no index error --- lib/Controller/Aria2Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") {