diff --git a/module/system/model.php b/module/system/model.php index 3fd471c5173..58892eadd45 100644 --- a/module/system/model.php +++ b/module/system/model.php @@ -254,7 +254,7 @@ public function setMaintenance(string $action): bool $maintenance = new stdclass(); $maintenance->action = $action; - $maintenance->reason = $this->lang->system->maintenance->reason[$action] ?? $this->lang->unknown; + $maintenance->reason = zget($this->lang->system->maintenance->reason, $action, $this->lang->unknown); return $this->loadModel('setting')->setItem('system.system.maintenance', json_encode($maintenance)); }