Make DbTools::bool() static.

This commit is contained in:
Markus Birth 2022-02-14 21:57:40 +01:00
parent 27d91781ee
commit ff2131f9e3
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -20,7 +20,7 @@ class DbTools
* @param string input value to compare
* @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')) {
return true;