Some important fixes

Some important fixes
This commit is contained in:
novgorodschi catalin
2026-08-10 09:08:09 +03:00
parent 2095a59b7e
commit da58de16b4
14 changed files with 105 additions and 19 deletions
+5 -1
View File
@@ -36,7 +36,11 @@ if($session->sit == 0) {
// update sesiune
$session->gold -= $cost;
$_SESSION['gold'] = $session->gold;
$session->b2 = ($session->b2 > $now ? $session->b2 : $now) + PLUS_PRODUCTION;
// Session nu are proprietatea ->b2; valoarea sta in userarray, de unde
// o citeste si PopulateVar(). Scrierea directa crea o proprietate
// dinamica (depreciata in PHP 8.2) si nu se vedea nicaieri.
$currentB2 = isset($session->userarray['b2']) ? (int) $session->userarray['b2'] : 0;
$session->userarray['b2'] = ($currentB2 > $now ? $currentB2 : $now) + PLUS_PRODUCTION;
// LOG pentru a2b2.php
mysqli_query($database->dblink,