r47843 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47842‎ | r47843 | r47844 >
Date:21:00, 26 February 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added check to prevent PHP notice message
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc
@@ -392,7 +392,8 @@
393393 } elseif ($tag_title == 'end template') {
394394 if ($source_is_page) {
395395 // 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);
397398 }
398399 // remove this tag, reset some variables, and close off form HTML tag
399400 $section = substr_replace($section, '', $brackets_loc, $brackets_end_loc + 3 - $brackets_loc);

Status & tagging log