probably fixed #118

This commit is contained in:
benson
2023-04-24 22:53:03 +08:00
parent fb7d2c8b56
commit b6a1b6ce83

View File

@@ -56,7 +56,7 @@ class Aria2
]; ];
//turn keys in $options into variables //turn keys in $options into variables
extract($options); extract($options);
if (isset($binary) && $this->isExecutable($binary)) { if (!empty($binary)) {
$this->bin = $binary; $this->bin = $binary;
} else { } else {
$this->bin = Helper::findBinaryPath('aria2c', __DIR__ . "/../../bin/aria2c"); $this->bin = Helper::findBinaryPath('aria2c', __DIR__ . "/../../bin/aria2c");