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
fix section end tag in template docs/example
[wfpl.git]
/
format.php
diff --git
a/format.php
b/format.php
index
13d79ce
..
5d7c2bb
100644
(file)
--- a/
format.php
+++ b/
format.php
@@
-72,8
+72,8
@@
function _format_positive_decimal($str) {
function format_positive_decimal($str) {
$str = _format_positive_decimal($str);
function format_positive_decimal($str) {
$str = _format_positive_decimal($str);
- if($str === '0.0') {
- $str = '0';
+ if(substr($str, -2) === '.0') {
+ $str = substr($str, 0, -2);
}
return $str;
}
}
return $str;
}