Commit 46965043 authored by pookey's avatar pookey

Boolean type checking fixed

parent 3a7f9b0e
......@@ -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':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment