projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed monthly quotas for non-integer workday hours.
[timetracker.git]
/
plugins
/
MonthlyQuota.class.php
diff --git
a/plugins/MonthlyQuota.class.php
b/plugins/MonthlyQuota.class.php
index
4fed3c9
..
4b03679
100644
(file)
--- a/
plugins/MonthlyQuota.class.php
+++ b/
plugins/MonthlyQuota.class.php
@@
-139,7
+139,7
@@
class MonthlyQuota {
}
// quotaToFloat converts a valid quota value to a float.
- p
rivate
function quotaToFloat($value) {
+ p
ublic
function quotaToFloat($value) {
if (preg_match('/^[0-9]{1,3}h?$/', $value )) { // 000 - 999
return (float) $value;