mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
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;
|
$startYear = date('Y') - 2;
|
||||||
}
|
}
|
||||||
|
if ($selected && $startYear > $selected) $startYear = $selected;
|
||||||
|
|
||||||
if (!$endyear)
|
if (!$endyear)
|
||||||
{
|
{
|
||||||
$endyear = date('Y') + 5;
|
$endyear = date('Y') + 5;
|
||||||
}
|
}
|
||||||
|
if ($selected && $endYear < $selected) $endYear = $selected;
|
||||||
|
|
||||||
$out = '<select name="'.$name.'">'."\n";
|
$out = '<select name="'.$name.'">'."\n";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user