diff --git a/htdocs/comm/propal/apercu.php b/htdocs/comm/propal/apercu.php index 565e31ce3f7..d8259edcaea 100644 --- a/htdocs/comm/propal/apercu.php +++ b/htdocs/comm/propal/apercu.php @@ -202,7 +202,7 @@ elseif (file_exists($fileimagebis)) { $multiple = $relativepath . "-"; - for ($i = 0; $i < $ret; $i++) + for ($i = 0; $i < 20; $i++) { $preview = $multiple.$i.'.png'; diff --git a/htdocs/commande/apercu.php b/htdocs/commande/apercu.php index e7232249a87..6d2c9f4452c 100644 --- a/htdocs/commande/apercu.php +++ b/htdocs/commande/apercu.php @@ -211,7 +211,7 @@ elseif (file_exists($fileimagebis)) { $multiple = $relativepath . "-"; - for ($i = 0; $i < $ret; $i++) + for ($i = 0; $i < 20; $i++) { $preview = $multiple.$i.'.png'; diff --git a/htdocs/compta/facture/apercu.php b/htdocs/compta/facture/apercu.php index 096b83ac2fa..a24da1fd7ca 100644 --- a/htdocs/compta/facture/apercu.php +++ b/htdocs/compta/facture/apercu.php @@ -174,7 +174,6 @@ if ($id > 0 || ! empty($ref)) print ''.$langs->trans("ErrorNoImagickReadimage").''; } } - } print ""; @@ -229,7 +228,7 @@ elseif (file_exists($fileimagebis)) { $multiple = $relativepath . "-"; - for ($i = 0; $i < $ret; $i++) + for ($i = 0; $i < 20; $i++) { $preview = $multiple.$i.'.png'; diff --git a/htdocs/fichinter/apercu.php b/htdocs/fichinter/apercu.php index df90be9d4cf..fbef251823d 100644 --- a/htdocs/fichinter/apercu.php +++ b/htdocs/fichinter/apercu.php @@ -172,7 +172,7 @@ elseif (file_exists($fileimagebis)) { $multiple = $relativepath . "-"; - for ($i = 0; $i < $ret; $i++) + for ($i = 0; $i < 20; $i++) { $preview = $multiple.$i.'.png';