From: Jason Woofenden Date: Wed, 10 Nov 2010 10:10:14 +0000 (-0500) Subject: fix format_mdy_to_ymd() to leave '' as is X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=bc76ce67d93f43c64e179a043800e500402dccbf fix format_mdy_to_ymd() to leave '' as is --- diff --git a/format.php b/format.php index 451ba21..a6b0582 100644 --- a/format.php +++ b/format.php @@ -292,6 +292,7 @@ function format_dollars($str) { # date is edited as mm/dd/yyyy but stored as yyyy-mm-dd function format_mdy_to_ymd($str) { + if($str == '') return ''; require_once('code/wfpl/time.php'); return mdy_to_ymd(format_oneline($str)); }