fix: don't initialize messages if not logged-in

This commit is contained in:
Martin Ambrus
2017-10-22 13:11:19 +02:00
parent 7270a69a63
commit e9e55af338
2 changed files with 5 additions and 2 deletions
+5 -1
View File
@@ -278,6 +278,10 @@ class Session {
};
$session = new Session;
$form = new Form;
$message = new Message;
// if there is no user, we'd try to load messages for user with ID 0, which is wrong
if ($_SESSION['id_user']) {
$message = new Message;
}
?>
-1
View File
@@ -1,4 +1,3 @@
- dorf1.php without being logged-in (but being logged-in via Admin) takes forever to load
- allow sending Mass Message + System Message from Admin
- fix editing current task from Taskmaster -> number never match the edited quest after save
- cannot delete a single medal in admin