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
360de0a6
Commit
360de0a6
authored
Aug 07, 2017
by
Carsten Rose
Browse files
save.php: code cleanup
parent
20b2b2c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/api/save.php
View file @
360de0a6
...
...
@@ -76,12 +76,14 @@ try {
$answer
[
API_MESSAGE
]
=
$e
->
formatMessage
();
$val
=
Store
::
getVar
(
SYSTEM_FORM_ELEMENT
,
STORE_SYSTEM
);
if
(
$val
!==
false
)
if
(
$val
!==
false
)
{
$answer
[
API_FIELD_NAME
]
=
$val
;
}
$val
=
Store
::
getVar
(
SYSTEM_FORM_ELEMENT_MESSAGE
,
STORE_SYSTEM
);
if
(
$val
!==
false
)
if
(
$val
!==
false
)
{
$answer
[
API_FIELD_MESSAGE
]
=
$val
;
}
}
catch
(
qfq\CodeException
$e
)
{
$answer
[
API_MESSAGE
]
=
$e
->
formatMessage
();
...
...
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