Commit 8cbce5ee authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Fix notice with multiple submit handling

parent 28ece213
......@@ -559,7 +559,7 @@ class Pieform {
$submitted = false;
foreach ($this->get_elements() as $element) {
// @todo Rename 'ajaxmessages' to 'submitelement'
if ($element['ajaxmessages'] == true && isset($values[$element['name']])) {
if (!empty($element['ajaxmessages']) == true && isset($values[$element['name']])) {
$function = "{$this->name}_submit_{$element['name']}";
if (function_exists($function)) {
$function($values);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment