forked from Wavyzz/dolibarr
Meilleure gestion erreur
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user