* fixed getBoolean function when boolean is passed

This commit is contained in:
slawkens1 2018-01-08 00:01:03 +01:00
parent 2dddb853f2
commit 087988dde3

View File

@ -167,7 +167,9 @@ function getFlagImage($country)
*/ */
function getBoolean($v) function getBoolean($v)
{ {
if(!$v || !isset($v[0])) return false; if(is_bool($v)) {
return $v;
}
if(is_numeric($v)) if(is_numeric($v))
return intval($v) > 0; return intval($v) > 0;