mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Add strlen check to always stuff db with two digit $bday_day
This commit is contained in:
parent
91c2b49c5d
commit
afd67b015d
@ -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";
|
||||
}
|
||||
|
||||
|
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user