mirror of
https://github.com/unraid/webgui.git
synced 2026-05-07 21:01:19 -05:00
SysDrivers: fix PHP8 errors
This commit is contained in:
@@ -81,9 +81,9 @@ function getmodules($name) {
|
||||
} elseif (is_file("/etc/modprobe.d/$modname.conf")) {
|
||||
$modprobe = file_get_contents("/etc/modprobe.d/$modname.conf");
|
||||
$state = strpos($modprobe, "blacklist")!==false ? "Disabled" : "System";
|
||||
$modprobe = explode(PHP_EOL,$modprobe);
|
||||
$module['state'] = $state;
|
||||
$module['modprobe'] = $modprobe;
|
||||
$modprobe = explode(PHP_EOL,$modprobe);
|
||||
}
|
||||
if ($filename != "(builtin)") {
|
||||
if ($filename) {
|
||||
|
||||
Reference in New Issue
Block a user