mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: artefacts couldn't be claimed after last db caching optimizations
This commit is contained in:
@@ -2656,7 +2656,7 @@ class Automation {
|
||||
} else {
|
||||
$xp=" gained ".$heroxp." XP from the battle";
|
||||
}
|
||||
$artifact = $database->getOwnArtefactInfo($data['to']);
|
||||
$artifact = reset($database->getOwnArtefactInfo($data['to']));
|
||||
if (!empty($artifact)) {
|
||||
if ($type=='3') {
|
||||
if ($database->canClaimArtifact($data['from'],$artifact['vref'],$artifact['size'],$artifact['type'])) {
|
||||
|
||||
@@ -7079,7 +7079,7 @@ References: User ID/Message ID, Mode
|
||||
SUM(IF(size = '3',1,0)) `unique`
|
||||
FROM " . TB_PREFIX . "artefacts WHERE owner = " . (int) $uid;
|
||||
$result = mysqli_query( $this->dblink, $q );
|
||||
$artifact = $this->mysqli_fetch_all( $result );
|
||||
$artifact = $this->mysqli_fetch_all( $result )[0];
|
||||
|
||||
if ( $artifact['totals'] < 3 || $type == 11 ) {
|
||||
$DefenderFields = $this->getResourceLevel( $vref );
|
||||
|
||||
Reference in New Issue
Block a user