Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sg_routes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TYPO3
sg_routes
Commits
9f1f0c22
Commit
9f1f0c22
authored
Nov 07, 2019
by
Kevin Ditscheid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] Do not use count for getRecortLocalization results, because it can return FALSE
parent
9c60241e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Classes/Hook/PageLayoutController.php
Classes/Hook/PageLayoutController.php
+1
-1
No files found.
Classes/Hook/PageLayoutController.php
View file @
9f1f0c22
...
...
@@ -66,7 +66,7 @@ class PageLayoutController {
$sourceUrls
[]
=
rtrim
(
$languageBase
->
getPath
(),
'/'
)
.
'/'
.
ltrim
(
$pageRow
[
'slug'
],
'/'
);
}
else
{
$translatedRowSearch
=
BackendUtility
::
getRecordLocalization
(
'pages'
,
$pageId
,
$languageId
);
if
(
\
count
(
$translatedRowSearch
)
)
{
if
(
$translatedRowSearch
)
{
$translatedRow
=
$translatedRowSearch
[
0
];
$sourceUrls
[]
=
rtrim
(
$languageBase
->
getPath
(),
'/'
)
.
'/'
.
ltrim
(
$translatedRow
[
'slug'
],
'/'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment