Merge branch 'MDL-33814-master' of git://github.com/FMCorz/moodle

This commit is contained in:
Sam Hemelryk 2012-07-03 11:36:01 +12:00
commit e1d7771b0f

View File

@ -1577,9 +1577,10 @@ class html_writer {
if (!($row instanceof html_table_row)) {
$newrow = new html_table_row();
foreach ($row as $item) {
$cell = new html_table_cell();
$cell->text = $item;
foreach ($row as $cell) {
if (!($cell instanceof html_table_cell)) {
$cell = new html_table_cell($cell);
}
$newrow->cells[] = $cell;
}
$row = $newrow;