Simplification
This commit is contained in:
@@ -20,7 +20,7 @@ class SiteController extends Controller
|
||||
public function show(): void
|
||||
{
|
||||
$post = (new Post())->findBySlug((string) $this->f3->get('PARAMS.slug'));
|
||||
if (!$post) {
|
||||
if ($post === null) {
|
||||
$this->f3->error(404);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user