mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-09 21:01:00 +00:00
Fix researching cache population (#358)
This commit is contained in:
@@ -354,8 +354,8 @@ trait DatabaseTroopQueries {
|
||||
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "research where vref = $vid ORDER BY timestamp ASC";
|
||||
$result = mysqli_query($this->dblink,$q);
|
||||
$researchingCache[$vid] = $this->mysqli_fetch_all($result);
|
||||
return $researchingCache[$vid];
|
||||
self::$researchingCache[$vid] = $this->mysqli_fetch_all($result);
|
||||
return self::$researchingCache[$vid];
|
||||
}
|
||||
|
||||
function checkIfResearched($vref, $unit, $use_cache = true) {
|
||||
|
||||
Reference in New Issue
Block a user