File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ protected function handlePost(): void
56
56
$ this ->model ->server ->setDisabled ((bool ) ($ this ->model ->form_fields ['disabled ' ] ?? null ));
57
57
$ this ->model ->server ->setOnline ((bool ) ($ this ->model ->form_fields ['online ' ] ?? null ));
58
58
59
- $ this ->model ->error = $ this ->model ->server ->commit () ? FormModel:: ERROR_SUCCESS : FormModel::ERROR_INTERNAL ;
59
+ $ this ->model ->error = $ this ->model ->server ->commit () ? false : FormModel::ERROR_INTERNAL ;
60
60
61
- if ($ this ->model ->error === FormModel:: ERROR_SUCCESS )
61
+ if ($ this ->model ->error === false )
62
62
{
63
63
$ event = Logger::initEvent (
64
64
\BNETDocs \Libraries \EventLog \EventTypes::SERVER_CREATED ,
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function invoke(?array $args): bool
58
58
if (!$ this ->model ->deleted )
59
59
{
60
60
$ this ->model ->_responseCode = HttpCode::HTTP_INTERNAL_SERVER_ERROR ;
61
- $ this ->model ->error = DeleteModel::ERROR_INTERNAL_ERROR ;
61
+ $ this ->model ->error = DeleteModel::ERROR_INTERNAL ;
62
62
return true ;
63
63
}
64
64
else
You can’t perform that action at this time.
0 commit comments