From: Jason Woofenden Date: Tue, 30 Dec 2008 04:52:21 +0000 (-0500) Subject: fixed enc_mmddyyyy() so it leaves a blank blank X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=80e481467af047ea61c31edc3527cb8cbf9894a5 fixed enc_mmddyyyy() so it leaves a blank blank --- diff --git a/encode.php b/encode.php index 11d60db..94e88d7 100644 --- a/encode.php +++ b/encode.php @@ -152,6 +152,9 @@ function enc_upper($str) { # pass date in the form 2008-05-23 # ercodes date as 05/23/2008 function enc_mmddyyyy($yyyy_mm_dd) { + if($yyyy_mm_dd == '') { + return ''; + } if(strlen($yyyy_mm_dd) != 10) { return date('m/d/Y'); }