From 80e481467af047ea61c31edc3527cb8cbf9894a5 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Mon, 29 Dec 2008 23:52:21 -0500 Subject: [PATCH] fixed enc_mmddyyyy() so it leaves a blank blank --- encode.php | 3 +++ 1 file changed, 3 insertions(+) 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'); } -- 1.7.10.4