Make DbTools::bool() static.
This commit is contained in:
parent
27d91781ee
commit
ff2131f9e3
@ -20,7 +20,7 @@ class DbTools
|
|||||||
* @param string input value to compare
|
* @param string input value to compare
|
||||||
* @return boolean boolean conversion of the input value
|
* @return boolean boolean conversion of the input value
|
||||||
*/
|
*/
|
||||||
public function bool($val)
|
public static function bool($val)
|
||||||
{
|
{
|
||||||
if (($val === true) || ($val == 'true') || ($val == 't') || ($val == '1')) {
|
if (($val === true) || ($val == 'true') || ($val == 't') || ($val == '1')) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user