mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
* fixed getBoolean function when boolean is passed
This commit is contained in:
parent
2dddb853f2
commit
087988dde3
@ -167,7 +167,9 @@ function getFlagImage($country)
|
||||
*/
|
||||
function getBoolean($v)
|
||||
{
|
||||
if(!$v || !isset($v[0])) return false;
|
||||
if(is_bool($v)) {
|
||||
return $v;
|
||||
}
|
||||
|
||||
if(is_numeric($v))
|
||||
return intval($v) > 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user