mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix undefined property access in Validator class
This commit is contained in:
parent
52f106968a
commit
bfa8ea5ddc
1 changed files with 2 additions and 2 deletions
|
|
@ -146,7 +146,7 @@ class Validator
|
|||
continue;
|
||||
}
|
||||
|
||||
$message = $rule->message ? $rule->message->body : NULL;
|
||||
$message = isset($rule->message) ? $rule->message->body : NULL;
|
||||
$rule = (array) $rule->attrs;
|
||||
$rule['message'] = $message;
|
||||
$name = $rule['name'];
|
||||
|
|
@ -183,7 +183,7 @@ class Validator
|
|||
continue;
|
||||
}
|
||||
|
||||
$title = $field->title ? $field->title->body : NULL;
|
||||
$title = isset($field->title) ? $field->title->body : NULL;
|
||||
$filter = (array) $field->attrs;
|
||||
$filter['title'] = $title;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue