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

save.php: code cleanup

parent 20b2b2c8
......@@ -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();
......
Markdown is supported
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