// Setting the pivot for the current entry
$pivot = $entry->pivot;
+ $upperpivot = $textlib->strtoupper($pivot, current_charset());
+ // Reduce pivot to 1cc if necessary
if ( !$fullpivot ) {
- $pivot = $textlib->substr($pivot, 0, 1, current_charset());
- $upperpivot = $textlib->strtoupper($pivot, current_charset());
+ $upperpivot = $textlib->substr($upperpivot, 0, 1, current_charset());
}
// If there's group break
foreach ($allentries as $entry) {
- /// Setting the pivot for the current entry
+ // Setting the pivot for the current entry
$pivot = $entry->pivot;
+ $upperpivot = $textlib->strtoupper($pivot, current_charset());
+ // Reduce pivot to 1cc if necessary
if ( !$fullpivot ) {
- $pivot = $textlib->substr($pivot, 0, 1, current_charset());
- $upperpivot = $textlib->strtoupper($pivot, current_charset());
+ $upperpivot = $textlib->substr($upperpivot, 0, 1, current_charset());
}
- /// if there's a group break
+ // if there's a group break
if ( $currentpivot != $upperpivot ) {
// print the group break if apply