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

Meilleure gestion erreur

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