X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=encode.php;h=94e88d7237a08a367cece6499020563e9b829cd3;hb=80e481467af047ea61c31edc3527cb8cbf9894a5;hp=11d60dbf62289ebb695a15e1bf7a6e86afee84f4;hpb=4a25d3b6318f7f361df3adfac17366452fe3ed49;p=wfpl.git 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'); }