@@ -18,9 +18,12 @@ |
||
18 | 18 | <p> |
19 | 19 | <a href="forum/create">Create a new post</a> |
20 | 20 | </p> |
21 | -<?php else : ?> |
|
21 | +<?php else { |
|
22 | + : ?> |
|
22 | 23 | <p>You have to be logged in to create a new post</p> |
23 | -<?php endif; ?> |
|
24 | +<?php endif; |
|
25 | +} |
|
26 | +?> |
|
24 | 27 | <?php if (!$items) : ?> |
25 | 28 | <p>There are no posts to show.!</p> |
26 | 29 | <a href="forum/create">Create a new post.</a> |
@@ -75,7 +75,7 @@ |
||
75 | 75 | * |
76 | 76 | * @return boolean true if okey, false if something went wrong. |
77 | 77 | */ |
78 | - public function callbackSubmit() |
|
78 | + public function callbackSubmit() |
|
79 | 79 | { |
80 | 80 | // Get values from the submitted form |
81 | 81 | $login = $this->di->get("session")->get("login"); |