r58168 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58167‎ | r58168 | r58169 >
Date:22:39, 26 October 2009
Author:yaron
Status:deferred
Tags:
Comment:
PHP fix
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormField.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormField.inc
@@ -217,7 +217,8 @@
218218 }
219219 if (! $part_of_multiple) { $text .= "| "; }
220220 $text .= "{{{field|" . $this->template_field->field_name;
221 - if ($this->template_field->input_type != '') {
 221+ if (isset($this->template_field->input_type) &&
 222+ $this->template_field->input_type != null) {
222223 $text .= "|input type=" . $this->template_field->input_type;
223224 }
224225 if ($this->is_mandatory) {

Status & tagging log