From b6a1b6ce83f68496bcd3bf2e411ae0214dc81ec3 Mon Sep 17 00:00:00 2001 From: benson Date: Mon, 24 Apr 2023 22:53:03 +0800 Subject: [PATCH] probably fixed #118 --- lib/Aria2/Aria2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Aria2/Aria2.php b/lib/Aria2/Aria2.php index da5e59f..6696c99 100644 --- a/lib/Aria2/Aria2.php +++ b/lib/Aria2/Aria2.php @@ -56,7 +56,7 @@ class Aria2 ]; //turn keys in $options into variables extract($options); - if (isset($binary) && $this->isExecutable($binary)) { + if (!empty($binary)) { $this->bin = $binary; } else { $this->bin = Helper::findBinaryPath('aria2c', __DIR__ . "/../../bin/aria2c");