diff --git a/classes/Planet.php b/classes/Planet.php index 417f58f7..d1489e53 100644 --- a/classes/Planet.php +++ b/classes/Planet.php @@ -26,7 +26,7 @@ class Planet { - public static function getOwner(\PDO $pdo_db, int $planet_id, array $owner_info): bool + public static function getOwner(\PDO $pdo_db, int $planet_id, array $owner_info): ?array { $owner_info = null; if ($planet_id > 0) @@ -42,11 +42,10 @@ public static function getOwner(\PDO $pdo_db, int $planet_id, array $owner_info) if ($result !== false) { $owner_info = (array) $stmt->fetch(\PDO::FETCH_ASSOC); - return true; } } - return false; + return $owner_info; } public static function bombing(