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
5656 $this->model->server->setDisabled((bool) ($this->model->form_fields['disabled'] ?? null));
5757 $this->model->server->setOnline((bool) ($this->model->form_fields['online'] ?? null));
5858
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;
6060
61- if ($this->model->error === FormModel::ERROR_SUCCESS )
61+ if ($this->model->error === false )
6262 {
6363 $event = Logger::initEvent(
6464 \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
5858 if (!$this->model->deleted)
5959 {
6060 $this->model->_responseCode = HttpCode::HTTP_INTERNAL_SERVER_ERROR;
61- $this->model->error = DeleteModel::ERROR_INTERNAL_ERROR ;
61+ $this->model->error = DeleteModel::ERROR_INTERNAL ;
6262 return true;
6363 }
6464 else
You can’t perform that action at this time.
0 commit comments