diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 289de824..0b104ec3 100755 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -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'])) { diff --git a/GameEngine/Database.php b/GameEngine/Database.php index 99ad38f4..68f7d016 100755 --- a/GameEngine/Database.php +++ b/GameEngine/Database.php @@ -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 );