mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
ugh
This commit is contained in:
parent
0f2f559d7a
commit
0ae297634e
|
@ -915,12 +915,10 @@ class Helper
|
|||
foreach ($rules as $rule_name => $rule) {
|
||||
if ($rule_name == $field) {
|
||||
if (is_array($rule)) {
|
||||
foreach ($rule as $rule_value) {
|
||||
if ($rule_value === 'required') {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
if (in_array('required', $rule)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (strpos($rule, 'required') === false) {
|
||||
|
|
Loading…
Reference in a new issue