From f78050b40958d1aefcafee04ea90514da739af12 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Wed, 12 Jun 2024 16:40:16 +0800 Subject: [PATCH] * [task#116512] Use zget instead of ?? or ?:. --- module/system/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }