Some additional fixes

Some additional fixes
This commit is contained in:
novgorodschi catalin
2026-09-01 07:56:14 +03:00
parent 054fde6e66
commit 71e73dde95
13 changed files with 169 additions and 28 deletions
+9
View File
@@ -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