Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
85f9d329
Commit
85f9d329
authored
Dec 29, 2018
by
Carsten Rose
Browse files
Fixes #7551: General Error. Access to undefined index
parent
0dbe8e91
Pipeline
#1264
passed with stage
in 1 minute and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Source/core/database/Database.php
View file @
85f9d329
...
...
@@ -324,9 +324,8 @@ class Database {
}
// Look for missing '()' after FROM in case LEFT JOIN is used.
if
(
stripos
(
$errorMsg
,
'Unknown column'
)
!==
false
&&
stripos
(
$pos
=
$sql
,
' LEFT JOIN '
)
!==
false
&&
isset
(
$sql
[
$pos
-
1
])
&&
$sql
[
$pos
-
1
]
!=
')'
)
{
$pos
=
stripos
(
$sql
,
' LEFT JOIN '
);
if
(
stripos
(
$errorMsg
,
'Unknown column'
)
!==
false
&&
$pos
!==
false
&&
(
$sql
[
$pos
-
1
]
??
''
)
!=
')'
)
{
$msg
.
=
"HINT: Maybe the tables after 'FROM' should be enclosed by '()'
\n
"
;
}
...
...
Write
Preview
Supports
Markdown
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