JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixed enc_mmddyyyy() so it leaves a blank blank
authorJason Woofenden <jason283@herkamire.com>
Tue, 30 Dec 2008 04:52:21 +0000 (23:52 -0500)
committerJason Woofenden <jason283@herkamire.com>
Tue, 30 Dec 2008 04:52:21 +0000 (23:52 -0500)
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');
        }