diff --git a/src/Request.php b/src/Request.php index 458eae8..db74b6e 100755 --- a/src/Request.php +++ b/src/Request.php @@ -319,6 +319,10 @@ public static function validate(array $rules, bool $returnFullData = false) { $data = \Leaf\Form::validate(static::body(false), $rules); + if ($data === false) { + return false; + } + return $returnFullData ? $data : static::get(array_keys($rules)); }