Browse Source

Update Topic\CalcStat

Visman 3 years ago
parent
commit
0d0c14fa39
1 changed files with 1 additions and 3 deletions
  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_post_id   = $maxId;
             $this->model->last_poster    = $row['poster'];
             $this->model->last_poster    = $row['poster'];
             $this->model->last_poster_id = $row['poster_id'];
             $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;
         $this->model->num_replies = $numReplies;