Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
3fb36691
Commit
3fb36691
authored
Jul 20, 2018
by
Thomas Löffler
Browse files
Add trim() for string comparison
parent
6427ef49
Pipeline
#4992
passed with stages
in 7 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/ter/class.tx_ter_api.php
View file @
3fb36691
...
@@ -169,7 +169,7 @@ class tx_ter_api
...
@@ -169,7 +169,7 @@ class tx_ter_api
);
);
}
}
if
((
string
)
$extensionInfoData
->
infoData
->
uploadComment
===
''
)
{
if
(
trim
((
string
)
$extensionInfoData
->
infoData
->
uploadComment
)
===
''
)
{
throw
new
\
T3o\Ter\Exception\NoUploadCommentException
(
throw
new
\
T3o\Ter\Exception\NoUploadCommentException
(
'You need to set an upload comment!'
,
'You need to set an upload comment!'
,
TX_TER_ERROR_UPLOADEXTENSION_NOUPLOADCOMMENT
TX_TER_ERROR_UPLOADEXTENSION_NOUPLOADCOMMENT
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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