Commit 46965043 authored by pookey's avatar pookey

Boolean type checking fixed

parent 3a7f9b0e
...@@ -227,6 +227,9 @@ class Doctrine_Validator { ...@@ -227,6 +227,9 @@ class Doctrine_Validator {
* @return boolean * @return boolean
*/ */
public static function isValidType($var, $type) { public static function isValidType($var, $type) {
if($type == 'boolean')
return true;
$looseType = self::gettype($var); $looseType = self::gettype($var);
if($type == 'enum') if($type == 'enum')
$type = 'integer'; $type = 'integer';
......
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