BUGFIX: fixed notice with missing $messages var when no fields are required. PATCH via ajshort

This commit is contained in:
Will Rossiter 2011-01-04 01:37:47 +00:00
parent fb3fb184e1
commit ed61c03971

View File

@ -446,6 +446,7 @@ class UserDefinedForm_Controller extends Page_Controller {
$rules = array();
$validation = array();
$messages = array();
if($this->Fields()) {
foreach($this->Fields() as $field) {