Skip to content
Snippets Groups Projects
Commit d11d5c78 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Meilleure gestion erreur

parent 11afa519
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,12 @@ if ($_POST['action'] == 'confirm_valide' && $_POST['confirm'] == 'yes' && $user-
llxHeader();
$paiement = new Paiement($db);
$paiement->fetch($_GET['id']);
$result=$paiement->fetch($_GET['id']);
if ($result <= 0)
{
dolibarr_print_error($db,'Payement '.$_GET['id'].' not found in database');
exit;
}
$html = new Form($db);
......
......@@ -164,6 +164,7 @@ if ($action == 'add_paiement')
}
else
{
$fiche_erreur_message = '<div class="error">'.$langs->trans("Error").'</div>';
$error++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment