Fix PHP8 errors

This commit is contained in:
bergware
2023-11-28 01:19:02 +01:00
parent 7bc581e77a
commit 989bef6130
2 changed files with 10 additions and 13 deletions
@@ -357,7 +357,7 @@ function plugin($method, $plugin_file, &$error) {
if (isset($file->attributes()->Method)) {
if (!in_array($method, explode(" ", $file->attributes()->Method))) continue;
} elseif ($method != 'install') continue;
$name = $file->attributes()->Name;
$name = $file->attributes()->Name ?: '';
// bergware - check Unraid version dependency (if present)
$min = $file->attributes()->Min;
if ($min && version_compare($unraid['version'],$min,'<')) {