forked from extern/egroupware
getYears: offered range to select from has to include already selected year
This commit is contained in:
parent
4e4341d091
commit
a68a536616
@ -133,11 +133,13 @@
|
||||
{
|
||||
$startYear = date('Y') - 2;
|
||||
}
|
||||
if ($selected && $startYear > $selected) $startYear = $selected;
|
||||
|
||||
if (!$endyear)
|
||||
{
|
||||
$endyear = date('Y') + 5;
|
||||
}
|
||||
if ($selected && $endYear < $selected) $endYear = $selected;
|
||||
|
||||
$out = '<select name="'.$name.'">'."\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user