From 04aab79137697ea3e7abccb9b83da9bc99a0cb38 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 29 Jun 2006 20:51:30 +0000 Subject: [PATCH] Fix bug when no record is found --- include/impress_listing_client.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/impress_listing_client.php b/include/impress_listing_client.php index 15e3121dc..38af394d9 100644 --- a/include/impress_listing_client.php +++ b/include/impress_listing_client.php @@ -73,6 +73,11 @@ echo ''; print ''; $year=make_array($cn,"select distinct extract(year from jr_date), extract(year from jr_date) from jrn"); +if ( sizeof($year) == 0 ) +{ + echo "Aucun enregistrement dans les journaux"; + exit(); +} $w->label="Année concernée"; print $w->IOValue('year',$year); print "";