mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00: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…
x
Reference in New Issue
Block a user