multiplugin scrips: fix PHP8 error

This commit is contained in:
bergware
2023-10-01 23:03:49 +02:00
parent 8b8107bf16
commit 20d5e9ab20

View File

@@ -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");