Skip to content

Commit

Permalink
* [task#116512] Use zget instead of ?? or ?:.
Browse files Browse the repository at this point in the history
  • Loading branch information
DingGuodong committed Jun 12, 2024
1 parent 9017979 commit f78050b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/system/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit f78050b

Please sign in to comment.