浏览代码

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;