2
0
forked from Wavyzz/dolibarr

Meilleure gestion erreur

This commit is contained in:
Laurent Destailleur
2007-05-23 22:39:14 +00:00
parent 11afa5190c
commit d11d5c780d
2 changed files with 7 additions and 1 deletions

View File

@@ -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);

View File

@@ -164,6 +164,7 @@ if ($action == 'add_paiement')
}
else
{
$fiche_erreur_message = '<div class="error">'.$langs->trans("Error").'</div>';
$error++;
}