Some important fixes PHP 8.1

Some important fixes PHP 8.1
This commit is contained in:
novgorodschi catalin
2026-08-11 09:19:32 +03:00
parent ac262db66f
commit 8c5a5b94ea
13 changed files with 77 additions and 28 deletions
+8
View File
@@ -27,6 +27,14 @@ include_once( "GameEngine/Village.php" );
include_once( "GameEngine/Units.php" );
AccessLogger::logRequest();
/**
* $route e setat doar in unele ramuri de mai jos, dar linia
* "if(... || $route == 1 || ...)" din zona de afisare il citeste mereu.
* Il initializam aici, o singura data, ca sa nu mai iasa
* "Undefined variable $route" pe fiecare deschidere de cladire.
*/
$route = 0;
if(isset($_GET['newdid'])){
$_SESSION['wid'] = $_GET['newdid'];