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
dfdd9a07
Commit
dfdd9a07
authored
Mar 21, 2021
by
Carsten Rose
Browse files
Refs #11998 - more specific error message if function not found
parent
b83706b1
Pipeline
#5057
passed with stages
in 5 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Core/Database/Database.php
View file @
dfdd9a07
...
...
@@ -1139,7 +1139,7 @@ class Database {
$dbT3
=
$this
->
store
->
getVar
(
SYSTEM_DB_NAME_T3
,
STORE_SYSTEM
);
$sql
=
"SELECT * FROM `
$dbT3
`.`tt_content` WHERE `
$column
` = ?"
;
$arr
=
$this
->
sql
(
$sql
,
ROW_EXPECT_1
,
[
$uid
]);
$arr
=
$this
->
sql
(
$sql
,
ROW_EXPECT_1
,
[
$uid
]
,
'Function "'
.
$column
.
'='
.
$uid
.
'" not found or more than one found.'
);
return
(
$arr
);
}
}
\ No newline at end of file
extension/Classes/Core/Report/Report.php
View file @
dfdd9a07
...
...
@@ -461,9 +461,12 @@ class Report {
// Get tt_content record bodytext
if
(
isset
(
$functionCache
[
$rcFunctionName
]))
{
// Already cached: get it from cache
$bodytextArr
=
$functionCache
[
$rcFunctionName
];
}
else
{
// Multi DB setup: check for the correct DB
if
(
DB_INDEX_T3
!=
$this
->
db
->
getDbIndex
())
{
// Current DB is wrong: get DB with DB_INDEX_T3
$db
=
new
Database
(
DB_INDEX_T3
);
}
else
{
$db
=
$this
->
db
;
...
...
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