Kohana v3.3.2
This commit is contained in:
@@ -478,7 +478,7 @@ class Kohana_Valid {
|
||||
*/
|
||||
public static function range($number, $min, $max, $step = NULL)
|
||||
{
|
||||
if ($number <= $min OR $number >= $max)
|
||||
if ($number < $min OR $number > $max)
|
||||
{
|
||||
// Number is outside of range
|
||||
return FALSE;
|
||||
@@ -548,4 +548,4 @@ class Kohana_Valid {
|
||||
return ($array[$field] === $array[$match]);
|
||||
}
|
||||
|
||||
} // End Valid
|
||||
}
|
||||
|
Reference in New Issue
Block a user