fix: ?? 연산자 우선순위

This commit is contained in:
Hide_D committed 2025-08-20 12:59:40 +00:00
1 parent 2b376b6aab
commit 4bb940c8c5
9 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ if($userInfo['delete_after']){
$penaltyList = Json::decode($userInfo['penalty']??'{}');
foreach($penaltyList as $penaltyKey=>$penaltyValue){
if($penaltyValue['expire'] ?? 0 > TimeUtil::now()){
if(($penaltyValue['expire'] ?? 0) > TimeUtil::now()){
Json::die([
'result'=>false,
'reason'=>"징계가 남아있어 탈퇴할 수 없습니다."