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
enc_hhmm leaves a blank blank. remove extra whitespace from metaform templates
[wfpl.git]
/
encode.php
diff --git
a/encode.php
b/encode.php
index
57e565c
..
6102a91
100644
(file)
--- a/
encode.php
+++ b/
encode.php
@@
-168,6
+168,9
@@
function enc_mmddyyyyhhmm($seconds) {
# takes decimal
# returns hh:mm
function enc_hhmm($str) {
+ if(strlen($str) == 0) {
+ return '';
+ }
$hours = floor($str);
$minutes = round(($str - $hours) * 60);
$str = sprintf("%d:%02d", $hours, $minutes);