Gestion retour d'erreur
This commit is contained in:
parent
be60eafec9
commit
1fa59250c0
@ -44,13 +44,6 @@ if ($user->societe_id > 0)
|
||||
$socidp = $user->societe_id;
|
||||
}
|
||||
|
||||
/*
|
||||
* Mode Liste
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
if ($_GET["facid"])
|
||||
{
|
||||
require_once DOL_DOCUMENT_ROOT.'/facture.class.php';
|
||||
@ -67,18 +60,22 @@ if ($_GET["facid"])
|
||||
}
|
||||
else
|
||||
{
|
||||
exec("/usr/bin/convert $file $file_img");
|
||||
|
||||
if (file_exists($file_img))
|
||||
if ( exec("/usr/bin/convert $file $file_img"))
|
||||
{
|
||||
print '<br><img src="./image.php?file='.$file_img.'"></img>';
|
||||
|
||||
if (file_exists($file_img))
|
||||
{
|
||||
print '<br><img src="./image.php?file='.$file_img.'"></img>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print "Erreur ";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$db->close();
|
||||
|
||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user