Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into 11.0

Conflicts:
	htdocs/core/class/utils.class.php
	htdocs/expensereport/class/expensereport.class.php
This commit is contained in:
Laurent Destailleur 2022-01-07 15:48:13 +01:00
commit 265aeb76e6
2 changed files with 13 additions and 11 deletions

View File

@ -346,6 +346,7 @@ class Utils
{ {
$handlein = popen($fullcommandclear, 'r'); $handlein = popen($fullcommandclear, 'r');
$i = 0; $i = 0;
if ($handlein) {
while (!feof($handlein)) while (!feof($handlein))
{ {
$i++; // output line number $i++; // output line number
@ -358,6 +359,7 @@ class Utils
} }
pclose($handlein); pclose($handlein);
} }
}
if ($compression == 'none') fclose($handle); if ($compression == 'none') fclose($handle);