mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-09-29 20:59:15 +02:00
BUGFIX: fixed notice with missing $messages var when no fields are required. PATCH via ajshort
This commit is contained in:
parent
fb3fb184e1
commit
ed61c03971
@ -446,6 +446,7 @@ class UserDefinedForm_Controller extends Page_Controller {
|
||||
|
||||
$rules = array();
|
||||
$validation = array();
|
||||
$messages = array();
|
||||
|
||||
if($this->Fields()) {
|
||||
foreach($this->Fields() as $field) {
|
||||
|
Loading…
Reference in New Issue
Block a user