forked from Wavyzz/dolibarr
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af6e95aa79 | ||
|
|
5d942c9d1a | ||
|
|
10e32c056e | ||
|
|
eb7dd74026 | ||
|
|
88f6c71e88 |
@@ -291,6 +291,7 @@ class Utils
|
|||||||
$ok=0;
|
$ok=0;
|
||||||
dol_syslog("Run command ".$fullcommandcrypted);
|
dol_syslog("Run command ".$fullcommandcrypted);
|
||||||
$handlein = popen($fullcommandclear, 'r');
|
$handlein = popen($fullcommandclear, 'r');
|
||||||
|
if ($handlein) {
|
||||||
$i=0;
|
$i=0;
|
||||||
while (!feof($handlein))
|
while (!feof($handlein))
|
||||||
{
|
{
|
||||||
@@ -303,6 +304,7 @@ class Utils
|
|||||||
elseif (preg_match('/'.preg_quote('SET SQL_NOTES=@OLD_SQL_NOTES').'/i',$read)) $ok=1;
|
elseif (preg_match('/'.preg_quote('SET SQL_NOTES=@OLD_SQL_NOTES').'/i',$read)) $ok=1;
|
||||||
}
|
}
|
||||||
pclose($handlein);
|
pclose($handlein);
|
||||||
|
}
|
||||||
|
|
||||||
if ($compression == 'none') fclose($handle);
|
if ($compression == 'none') fclose($handle);
|
||||||
if ($compression == 'gz') gzclose($handle);
|
if ($compression == 'gz') gzclose($handle);
|
||||||
|
|||||||
Reference in New Issue
Block a user