Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-28251 DB activity module: fixed the argument type error for html_…

…table_row from string to array
  • Loading branch information...
commit e12559481f7fd866e4289aa1d39e8417516f0a8a 1 parent 020f0ff
@rwijaya rwijaya authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/data/lib.php
View
4 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.