mirror of
https://github.com/unraid/webgui.git
synced 2026-02-23 10:49:52 -06:00
Fix php warnings.
This commit is contained in:
@@ -35,7 +35,7 @@ function getplugin($in) {
|
||||
function getmodules($line) {
|
||||
global $arrModules,$lsmod,$kernel,$arrModtoPlg,$modplugins ;
|
||||
$modprobe = "" ;
|
||||
$desc = $file = $pluginfile = $option = $filename = $depends = $supporturl = $dir = null ;
|
||||
$desc = $file = $pluginfile = $option = $filename = $depends = $support = $supporturl = $dir = null ;
|
||||
$name = $line ;
|
||||
#echo $line ;
|
||||
$modname = shell_exec("modinfo $name > /dev/null") ;
|
||||
@@ -161,7 +161,7 @@ switch ($_POST['table']) {
|
||||
$arrModules = array() ;
|
||||
|
||||
$list = scandir('/var/log/plugins/') ;
|
||||
foreach($list as $f) $modplugins[plugin("name" , @readlink("/var/log/plugins/$f"))] = readlink("/var/log/plugins/$f") ;
|
||||
foreach($list as $f) $modplugins[plugin("name" , @readlink("/var/log/plugins/$f"))] = @readlink("/var/log/plugins/$f") ;
|
||||
|
||||
foreach($builtinmodules as $bultin)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user