diff --git a/module/system/model.php b/module/system/model.php index 3fd471c517..58892eadd4 100644 --- a/module/system/model.php +++ b/module/system/model.php @@ -254,7 +254,7 @@ class systemModel extends model $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)); }