Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b74d746
)
fix format_mdy_to_ymd() to leave '' as is
author
Jason Woofenden
<jason@jasonwoof.com>
Wed, 10 Nov 2010 10:10:14 +0000
(
05:10
-0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 10 Nov 2010 10:10:43 +0000
(
05:10
-0500)
format.php
patch
|
blob
|
history
diff --git
a/format.php
b/format.php
index
451ba21
..
a6b0582
100644
(file)
--- a/
format.php
+++ b/
format.php
@@
-292,6
+292,7
@@
function format_dollars($str) {
# date is edited as mm/dd/yyyy but stored as yyyy-mm-dd
function format_mdy_to_ymd($str) {
# date is edited as mm/dd/yyyy but stored as yyyy-mm-dd
function format_mdy_to_ymd($str) {
+ if($str == '') return '';
require_once('code/wfpl/time.php');
return mdy_to_ymd(format_oneline($str));
}
require_once('code/wfpl/time.php');
return mdy_to_ymd(format_oneline($str));
}