Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc |
— | — | @@ -392,7 +392,8 @@ |
393 | 393 | } elseif ($tag_title == 'end template') { |
394 | 394 | if ($source_is_page) { |
395 | 395 | // add any unhandled template fields in the page as hidden variables |
396 | | - $form_text .= SFFormUtils::unhandledFieldsHTML($template_contents); |
| 396 | + if (isset($template_contents)) |
| 397 | + $form_text .= SFFormUtils::unhandledFieldsHTML($template_contents); |
397 | 398 | } |
398 | 399 | // remove this tag, reset some variables, and close off form HTML tag |
399 | 400 | $section = substr_replace($section, '', $brackets_loc, $brackets_end_loc + 3 - $brackets_loc); |