Commit 360de0a6 authored by Carsten  Rose's avatar Carsten Rose
Browse files

save.php: code cleanup

parent 20b2b2c8
...@@ -76,12 +76,14 @@ try { ...@@ -76,12 +76,14 @@ try {
$answer[API_MESSAGE] = $e->formatMessage(); $answer[API_MESSAGE] = $e->formatMessage();
$val = Store::getVar(SYSTEM_FORM_ELEMENT, STORE_SYSTEM); $val = Store::getVar(SYSTEM_FORM_ELEMENT, STORE_SYSTEM);
if ($val !== false) if ($val !== false) {
$answer[API_FIELD_NAME] = $val; $answer[API_FIELD_NAME] = $val;
}
$val = Store::getVar(SYSTEM_FORM_ELEMENT_MESSAGE, STORE_SYSTEM); $val = Store::getVar(SYSTEM_FORM_ELEMENT_MESSAGE, STORE_SYSTEM);
if ($val !== false) if ($val !== false) {
$answer[API_FIELD_MESSAGE] = $val; $answer[API_FIELD_MESSAGE] = $val;
}
} catch (qfq\CodeException $e) { } catch (qfq\CodeException $e) {
$answer[API_MESSAGE] = $e->formatMessage(); $answer[API_MESSAGE] = $e->formatMessage();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment