1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Boolean type checking fixed

This commit is contained in:
pookey 2006-08-15 21:31:59 +00:00
parent 3a7f9b0e92
commit 46965043be

View File

@ -227,9 +227,12 @@ class Doctrine_Validator {
* @return boolean
*/
public static function isValidType($var, $type) {
if($type == 'boolean')
return true;
$looseType = self::gettype($var);
if($type == 'enum')
$type = 'integer';
$type = 'integer';
switch($looseType):
case 'float':