]> git.mjollnir.org Git - moodle.git/commitdiff
- Fixing a bug: Group breaks even when the only thing that change between an entry...
authorwillcast <willcast>
Sun, 16 Nov 2003 02:53:13 +0000 (02:53 +0000)
committerwillcast <willcast>
Sun, 16 Nov 2003 02:53:13 +0000 (02:53 +0000)
mod/glossary/view.php

index f7725a4c271007e56d7bc2509d887afb9eaf2f4d..8f34a11604a9fb539a35b897e42815b405c34dcb 100644 (file)
                     $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 '<p>';
                         echo '<table width="95%" border="0" class="generaltabselected" bgcolor="' . $THEME->cellheading2 . '">';