Fix bug when no record is found
This commit is contained in:
parent
f300343cc5
commit
04aab79137
1 changed files with 5 additions and 0 deletions
|
|
@ -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>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue