소스 검색

Update Topic\CalcStat

Visman 3 년 전
부모
커밋
0d0c14fa39
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      app/Models/Topic/CalcStat.php

+ 1 - 3
app/Models/Topic/CalcStat.php

@@ -67,9 +67,7 @@ class CalcStat extends Method
             $this->model->last_post_id   = $maxId;
             $this->model->last_poster    = $row['poster'];
             $this->model->last_poster_id = $row['poster_id'];
-            $this->model->last_post      = $row['edited'] > 0 && $row['edited'] > $row['posted']
-                ? $row['edited']
-                : $row['posted'];
+            $this->model->last_post      = $row['edited'] > $row['posted'] ? $row['edited'] : $row['posted'];
         }
 
         $this->model->num_replies = $numReplies;