From 6e8b607dd9186cf9f74fcbc1076169c6fed9ae77 Mon Sep 17 00:00:00 2001 From: huangjx Date: Tue, 5 Oct 2021 09:35:21 +0800 Subject: [PATCH] fixed bug --- 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 cabd6b2..cd40bbe 100644 --- a/lib/Controller/Aria2Controller.php +++ b/lib/Controller/Aria2Controller.php @@ -265,7 +265,7 @@ class Aria2Controller extends Controller } $data = array_filter($resp, function ($value) { - $gid = $value['gid']; + $gid = $value['following'] ?? $value['gid']; return (bool) ($this->dbconn->getUidByGid($gid) === $this->uid); });