From 044b68930890019a3ca1d35ab8b03c31caf0e588 Mon Sep 17 00:00:00 2001 From: Brian Barnes Date: Wed, 21 Jan 2015 10:37:54 +1300 Subject: [PATCH] MDL-48907 grades: fixed display of grade tabs --- grade/lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grade/lib.php b/grade/lib.php index 3470a69a9fc..7a6d09b3b1c 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -617,7 +617,7 @@ function grade_print_tabs($active_type, $active_plugin, $plugin_info, $return=fa $top_row = array(); $bottom_row = array(); $inactive = array($active_plugin); - $activated = array(); + $activated = array($active_type); $count = 0; $active = ''; @@ -661,9 +661,9 @@ function grade_print_tabs($active_type, $active_plugin, $plugin_info, $return=fa $tabs[] = $bottom_row; if ($return) { - return print_tabs($tabs, $active_type, $inactive, $activated, true); + return print_tabs($tabs, $active_plugin, $inactive, $activated, true); } else { - print_tabs($tabs, $active_type, $inactive, $activated); + print_tabs($tabs, $active_plugin, $inactive, $activated); } }