* [task#116512] Use zget instead of ?? or ?:.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user