Refactor GameEngine files

fix some GameEngine bugs and new improovements
This commit is contained in:
novgorodschi catalin
2026-07-20 07:09:06 +03:00
parent 94a7a1c245
commit 8db3032293
11 changed files with 951 additions and 1002 deletions
+5
View File
@@ -383,6 +383,11 @@ if (!isset($SAJAX_INCLUDED)) {
function get_data() {
global $session,$database;
// FIX: $data initializat inainte de concatenare - fara asta, PHP 8+
// arunca "Warning: Undefined variable $data" la fiecare refresh de chat
// (umple error log-ul; pe PHP 9 devine mai strict).
$data = '';
$alliance = $database->escape($session->alliance);
$query = mysqli_query($database->dblink,"select id_user, name, date, msg from ".TB_PREFIX."chat where alli='$alliance' order by id desc limit 0,13");
while ($r = mysqli_fetch_array($query)) {