bug 1226: Only consider values above 1900 as the year when returning a pre-filled... bug-1226
authorBenny Baumann <BenBE@geshi.org>
Sat, 21 Jun 2014 22:45:15 +0000 (00:45 +0200)
committerBenny Baumann <BenBE@geshi.org>
Sat, 21 Jun 2014 22:45:15 +0000 (00:45 +0200)
pages/wot/5.php

index 7fdd1c5..565dd6a 100644 (file)
@@ -75,7 +75,7 @@
         <?=_("Date of Birth")?><br/>
         (<?=_("yyyy/mm/dd")?>)</td>
     <td class="DataTD">
-        <input type="text" name="year" value="<?=array_key_exists('year',$_SESSION['assuresomeone']) && intval($_SESSION['assuresomeone']['year']) !== 0 ? intval($_SESSION['assuresomeone']['year']):''?>" size="4" autocomplete="off"></nobr>
+        <input type="text" name="year" value="<?=array_key_exists('year',$_SESSION['assuresomeone']) && intval($_SESSION['assuresomeone']['year']) >= 1900 ? intval($_SESSION['assuresomeone']['year']):''?>" size="4" autocomplete="off"></nobr>
         <select name="month">
 <?
 for($i = 1; $i <= 12; $i++)