Explorar o código

Update Topic page

Visman %!s(int64=4) %!d(string=hai) anos
pai
achega
020518edbd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
         }
 
-        if (! $posts = $topic->pageData()) {
+        if (empty($posts = $topic->pageData())) {
             return $this->go('last', $topic);
         }