projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved isTrue() function and its usage to streamline code.
[timetracker.git]
/
WEB-INF
/
lib
/
common.lib.php
diff --git
a/WEB-INF/lib/common.lib.php
b/WEB-INF/lib/common.lib.php
index
d29ba1a
..
4411fb5
100644
(file)
--- a/
WEB-INF/lib/common.lib.php
+++ b/
WEB-INF/lib/common.lib.php
@@
-165,7
+165,7
@@
function check_extension($ext)
// isTrue is a helper function to return correct false for older config.php values defined as a string 'false'.
function isTrue($val)
{
// isTrue is a helper function to return correct false for older config.php values defined as a string 'false'.
function isTrue($val)
{
- return ($val ==
false || $val === 'false') ? false : true
;
+ return ($val ==
= true)
;
}
// ttValidString is used to check user input to validate a string.
}
// ttValidString is used to check user input to validate a string.