JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixed enc_mmddyyyy() so it leaves a blank blank
[wfpl.git] / encode.php
index 11d60db..94e88d7 100644 (file)
@@ -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');
        }