Add strlen check to always stuff db with two digit $bday_day

This commit is contained in:
Miles Lott 2001-04-08 07:33:09 +00:00
parent 91c2b49c5d
commit afd67b015d
2 changed files with 8 additions and 0 deletions

View File

@ -72,6 +72,10 @@
if (! $bday_month && ! $bday_day && ! $bday_year) {
$bday = "";
} else {
if (strlen ($bday_day) == 1)
{
$bday_day = "0".$bday_day;
}
$bday = "$bday_month/$bday_day/$bday_year";
}

View File

@ -78,6 +78,10 @@
if (! $bday_month && ! $bday_day && ! $bday_year) {
$bday = "";
} else {
if (strlen ($bday_day) == 1)
{
$bday_day = "0".$bday_day;
}
$bday = "$bday_month/$bday_day/$bday_year";
}