mirror of
https://github.com/unraid/webgui.git
synced 2026-01-01 06:59:56 -06:00
multiplugin scrips: fix PHP8 error
This commit is contained in:
@@ -44,7 +44,7 @@ foreach ($plugins as $plugin) {
|
||||
$run = popen("$cmd $method $pluginArg",'r');
|
||||
while (!feof($run)) {
|
||||
$line .= fgetc($run);
|
||||
if (in_array($line[-1],["\r","\n"])) {write($line); $line = '';}
|
||||
if (!empty($line) && in_array($line[-1],["\r","\n"])) {write($line); $line = '';}
|
||||
}
|
||||
pclose($run);
|
||||
write("\n");
|
||||
|
||||
Reference in New Issue
Block a user