瀏覽代碼

Update Topic page

Visman 4 年之前
父節點
當前提交
020518edbd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Models/Pages/Topic.php

+ 1 - 1
app/Models/Pages/Topic.php

@@ -120,7 +120,7 @@ class Topic extends Page
             return $this->c->Message->message('Not Found', true, 404);
             return $this->c->Message->message('Not Found', true, 404);
         }
         }
 
 
-        if (! $posts = $topic->pageData()) {
+        if (empty($posts = $topic->pageData())) {
             return $this->go('last', $topic);
             return $this->go('last', $topic);
         }
         }