mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
* fixed getBoolean function when boolean is passed
This commit is contained in:
parent
35a5aafbb5
commit
513e8f4b30
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user