MDL-28251 DB activity module: fixed the argument type error for html_table_row from string to array
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user