mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
847616ae82 | ||
|
|
ceb1e699b7 | ||
|
|
c028819cab |
@@ -189,15 +189,16 @@ if ($what == 'mysql')
|
|||||||
$ok=0;
|
$ok=0;
|
||||||
dol_syslog("Run command ".$fullcommandcrypted);
|
dol_syslog("Run command ".$fullcommandcrypted);
|
||||||
$handlein = popen($fullcommandclear, 'r');
|
$handlein = popen($fullcommandclear, 'r');
|
||||||
while (!feof($handlein))
|
if ($handlein) {
|
||||||
{
|
while (!feof($handlein))
|
||||||
$read = fgets($handlein);
|
{
|
||||||
fwrite($handle,$read);
|
$read = fgets($handlein);
|
||||||
if (preg_match('/'.preg_quote('-- Dump completed').'/i',$read)) $ok=1;
|
fwrite($handle,$read);
|
||||||
elseif (preg_match('/'.preg_quote('SET SQL_NOTES=@OLD_SQL_NOTES').'/i',$read)) $ok=1;
|
if (preg_match('/'.preg_quote('-- Dump completed').'/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);
|
||||||
if ($compression == 'bz') bzclose($handle);
|
if ($compression == 'bz') bzclose($handle);
|
||||||
|
|||||||
@@ -940,6 +940,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
$this->lines[$i]->remise_percent,
|
$this->lines[$i]->remise_percent,
|
||||||
'HT',
|
'HT',
|
||||||
0,
|
0,
|
||||||
|
$this->lines[$i]->product_type,
|
||||||
$this->lines[$i]->info_bits
|
$this->lines[$i]->info_bits
|
||||||
);
|
);
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user