mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-07 05:14:31 +00:00
fix: undefined index
This commit is contained in:
@@ -280,7 +280,7 @@ $session = new Session;
|
||||
$form = new Form;
|
||||
|
||||
// if there is no user, we'd try to load messages for user with ID 0, which is wrong
|
||||
if ($_SESSION['id_user']) {
|
||||
if (!empty($_SESSION['id_user'])) {
|
||||
$message = new Message;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user