mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Remove unnecessary cast
This commit is contained in:
@@ -5,14 +5,14 @@ class p4field
|
|||||||
|
|
||||||
public static function isyes($v)
|
public static function isyes($v)
|
||||||
{
|
{
|
||||||
$v = mb_strtolower(trim((string) $v));
|
$v = mb_strtolower(trim($v));
|
||||||
|
|
||||||
return($v == '1' || $v == 'y' || $v == 'yes' || $v == 'o' || $v == 'oui' || $v == 'on' || $v == 'true');
|
return($v == '1' || $v == 'y' || $v == 'yes' || $v == 'o' || $v == 'oui' || $v == 'on' || $v == 'true');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function isno($v)
|
public static function isno($v)
|
||||||
{
|
{
|
||||||
$v = mb_strtolower(trim((string) $v));
|
$v = mb_strtolower(trim($v));
|
||||||
|
|
||||||
return($v == '0' || $v == 'n' || $v == 'no' || $v == 'non' || $v = 'off' || $v == 'false');
|
return($v == '0' || $v == 'n' || $v == 'no' || $v == 'non' || $v = 'off' || $v == 'false');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user