Solve some upperpivot notices and wrong behaviours. More coming...
This commit is contained in:
@@ -152,9 +152,10 @@
|
||||
|
||||
// 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
|
||||
|
||||
@@ -332,14 +332,15 @@
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user