diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index 4540dcb164..85421027d1 100644 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -920,14 +920,16 @@ class Helper } else { $required = false; } - if (strpos($rule, 'required') === false) { - return false; } else { - if (strpos($rule_name, 'required') === false) { - $required = false; - } else { - $required = true; - } + if (strpos($rule, 'required') === false) { + return false; + } else { + if (strpos($rule_name, 'required') === false) { + $required = false; + } else { + $required = true; + } + } } } }