SysDrivers: fix PHP8 errors

This commit is contained in:
bergware
2023-10-26 02:43:31 +02:00
parent 2235eefe09
commit d1d0880ceb
@@ -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) {