@@ -11,7 +11,7 @@ |
||
11 | 11 | $items = isset($items) ? $items : null; |
12 | 12 | $session = $this->di->get("session"); |
13 | 13 | $filter = $this->di->get("textfilter"); |
14 | -$tags = []; |
|
14 | +$tags = [ ]; |
|
15 | 15 | // var_dump($session); |
16 | 16 | ?> |
17 | 17 | <h1>Welcome to the forum</h1> |
@@ -19,9 +19,12 @@ |
||
19 | 19 | <p> |
20 | 20 | <a href="forum/create">Create a new post</a> |
21 | 21 | </p> |
22 | -<?php else : ?> |
|
22 | +<?php else { |
|
23 | + : ?> |
|
23 | 24 | <p>You have to be logged in to create a new post</p> |
24 | -<?php endif; ?> |
|
25 | +<?php endif; |
|
26 | +} |
|
27 | +?> |
|
25 | 28 | <?php if (!$items) : ?> |
26 | 29 | <p>There are no posts to show!</p> |
27 | 30 | <?php endif; ?> |