Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Fix pagetitle "0" preventing encoding/decoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
whefter authored and helhum committed Sep 13, 2016
1 parent e4f9fbd commit bf14d9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/UriGeneratorAndResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 613,7 @@ protected function rootLineToPath($rl, $lang) {
$segTitleFieldArray = GeneralUtility::trimExplode(',', $this->conf['segTitleFieldList'] ? $this->conf['segTitleFieldList'] : TX_REALURL_SEGTITLEFIELDLIST_DEFAULT, 1);
$theTitle = '';
foreach ($segTitleFieldArray as $fieldName) {
if ($page[$fieldName]) {
if (isset($page[$fieldName]) && $page[$fieldName] !== '') {
$theTitle = $page[$fieldName];
break;
}
Expand Down Expand Up @@ -1067,7 1067,7 @@ protected function findPageBySegmentAndPid($searchPid, $title) {
// otherwise they will never be found
$uidTrack[$row['uid']] = $row;
foreach ($segTitleFieldArray as $fieldName) {
if ($row[$fieldName]) {
if (isset($row[$fieldName]) && $row[$fieldName] !== '') {
$encodedTitle = $this->encodeTitle($row[$fieldName]);
if (!isset($titles[$fieldName][$encodedTitle])) {
$titles[$fieldName][$encodedTitle] = $row['uid'];
Expand Down

0 comments on commit bf14d9d

Please sign in to comment.