From: willcast Date: Sun, 16 Nov 2003 02:53:13 +0000 (+0000) Subject: - Fixing a bug: Group breaks even when the only thing that change between an entry... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5020a17a85bf9673418267da5e1ce266ca6ddca6;p=moodle.git - Fixing a bug: Group breaks even when the only thing that change between an entry and the previous is its case. --- diff --git a/mod/glossary/view.php b/mod/glossary/view.php index f7725a4c27..8f34a11604 100644 --- a/mod/glossary/view.php +++ b/mod/glossary/view.php @@ -444,7 +444,6 @@ $showentry = 0; } } -$num=0; //glossary_debug($debug,(++$num) . ": $showentry"); if ( $hook == 'SPECIAL' ) { $initial = $entry->concept[0]; @@ -474,7 +473,7 @@ $num=0; if ( $showentry ) { /// if there's a group break - if ( $currentpivot != $pivot ) { + if ( $currentpivot != strtoupper($pivot) ) { // print the group break if apply and necessary if ( $printpivot ) { @@ -482,7 +481,7 @@ $num=0; print_simple_box_end(); $tableisopen = 0; } - $currentpivot = $pivot; + $currentpivot = strtoupper($pivot); echo '

'; echo '';