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 instant
$session->gold -= $cost;
$_SESSION['gold'] = $session->gold;
$session->b1 = ($session->b1 > $now ? $session->b1 : $now) + PLUS_PRODUCTION;
// Session nu are proprietatea ->b1; 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.
$currentB1 = isset($session->userarray['b1']) ? (int) $session->userarray['b1'] : 0;
$session->userarray['b1'] = ($currentB1 > $now ? $currentB1 : $now) + PLUS_PRODUCTION;
// LOG pentru a2b2.php
mysqli_query($database->dblink,