mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-02 16:37:15 +00:00
Some additional fixes
Some additional fixes
This commit is contained in:
@@ -436,6 +436,15 @@ class Message
|
||||
{
|
||||
global $database, $session;
|
||||
$notice = $database->getNotice2($id);
|
||||
|
||||
// FIX (PHP log): id inexistent (notice sters / link stale) ->
|
||||
// getNotice2() intoarce null -> $notice['uid'] pica cu "Trying to
|
||||
// access array offset on null". Tratam identic cu cazul
|
||||
// "neautorizat" de mai jos (return null).
|
||||
if ($notice === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (
|
||||
$notice['uid'] == $session->uid ||
|
||||
$notice['ally'] == $session->alliance
|
||||
|
||||
Reference in New Issue
Block a user