Fix bug when no record is found

This commit is contained in:
sparkyx 2006-06-29 20:51:30 +00:00
parent f300343cc5
commit 04aab79137

View file

@ -73,6 +73,11 @@ echo '<TABLE>';
print '<TR>';
$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 "</TR>";