Solve some upperpivot notices and wrong behaviours. More coming...

This commit is contained in:
stronk7
2006-04-09 10:59:39 +00:00
parent 7b1f6431a3
commit 30691fc3c3
2 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -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
+5 -4
View File
@@ -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