Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed enc_mmddyyyy() so it leaves a blank blank
[wfpl.git]
/
encode.php
diff --git
a/encode.php
b/encode.php
index
11d60db
..
94e88d7
100644
(file)
--- 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');
}