2
0
forked from Wavyzz/dolibarr

Merge branch '10.0' of https://github.com/dolibarr/dolibarr into develop

This commit is contained in:
Laurent Destailleur
2019-10-29 11:48:36 +01:00
3 changed files with 23 additions and 14 deletions

View File

@@ -1848,10 +1848,15 @@ function dol_convert_file($fileinput, $ext = 'png', $fileoutput = '', $page = ''
if (empty($fileoutput)) $fileoutput=$fileinput.".".$ext;
$count = $image->getNumberImages();
if (! dol_is_file($fileoutput) || is_writeable($fileoutput))
{
$ret = $image->writeImages($fileoutput, true);
try {
$ret = $image->writeImages($fileoutput, true);
}
catch(Exception $e)
{
dol_syslog($e->getMessage(), LOG_WARNING);
}
}
else
{