From ec819f5141be15c7b2fd29c23586091fa1d7e303 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Thu, 4 Jan 2018 15:46:11 +0800 Subject: [PATCH] MDL-61153 lesson: Inconsistent column sizing in detailed statistics --- mod/lesson/report.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mod/lesson/report.php b/mod/lesson/report.php index 7e95ae2f103..a5f5eaf5bc0 100644 --- a/mod/lesson/report.php +++ b/mod/lesson/report.php @@ -304,12 +304,10 @@ if ($action === 'delete') { $table->attributes['class'] = ''; } - - $table->align = array('left', 'left'); - $table->size = array('70%', null); - $table->attributes['class'] = 'compacttable generaltable form-inline'; - foreach ($answerpages as $page) { + $table->align = array('left', 'left'); + $table->size = array('70%', null); + $table->attributes['class'] = 'compacttable generaltable form-inline'; unset($table->data); if ($page->grayout) { // set the color of text $fontstart = "";