diff --git a/mod/data/lib.php b/mod/data/lib.php index 3ddc1589f3e..f441d3b91ae 100644 --- a/mod/data/lib.php +++ b/mod/data/lib.php @@ -527,10 +527,10 @@ function data_generate_default_template(&$data, $template, $recordid=0, $form=fa $cell->attributes['class'] = 'controls'; $table->data[] = new html_table_row(array($cell)); } else if ($template == 'asearchtemplate') { - $row = new html_table_row(get_string('authorfirstname', 'data').': ', '##firstname##'); + $row = new html_table_row(array(get_string('authorfirstname', 'data').': ', '##firstname##')); $row->attributes['class'] = 'searchcontrols'; $table->data[] = $row; - $row = new html_table_row(get_string('authorlastname', 'data').': ', '##lastname##'); + $row = new html_table_row(array(get_string('authorlastname', 'data').': ', '##lastname##')); $row->attributes['class'] = 'searchcontrols'; $table->data[] = $row; }