Skip to content

Commit 8f3b9d4

Browse files
committed
fix: temporary fix (will update later)
1 parent 1882a7c commit 8f3b9d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Request.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@ public static function validate(array $rules, bool $returnFullData = false)
319319
{
320320
$data = \Leaf\Form::validate(static::body(false), $rules);
321321

322+
if ($data === false) {
323+
return false;
324+
}
325+
322326
return $returnFullData ? $data : static::get(array_keys($rules));
323327
}
324328

0 commit comments

Comments
 (0)