MDL-18542:

Replacing another (intermediate) fix.
This commit is contained in:
thepurpleblob
2009-03-24 10:33:54 +00:00
parent e56c4c0027
commit 0326d0e6f7
+5
View File
@@ -166,6 +166,11 @@ class data_field_base { // Base class for Database Field Types (see field/*/
$content = '';
}
// beware get_field returns false for new, empty records MDL-18567
if ($content===false) {
$content='';
}
$str = '<div title="'.s($this->field->description).'">';
$str .= '<input style="width:300px;" type="text" name="field_'.$this->field->id.'" id="field_'.$this->field->id.'" value="'.s($content).'" />';
$str .= '</div>';