Bday length checking

This commit is contained in:
Miles Lott 2001-04-09 12:56:22 +00:00
parent ab11b27114
commit ace6936802

View File

@ -530,6 +530,8 @@
} elseif ($value=="BDAY") {
$tmp = split("/",$buffer[$value]); # 12/31/1969 -> 1969-12-31
if ($tmp[0]) {
if (strlen($tmp[0]) == 1) { $tmp[0] = '0'.$tmp[0]; }
if (strlen($tmp[0]) == 1) { $tmp[1] = '0'.$tmp[1]; }
$entry .= "BDAY:". $tmp[2]."-".$tmp[0]."-".$tmp[1]."\n";
}
} else {