private static function HandleEquipmentCacheInfo() { if (!self::IsCorrect()) { WoW_Log::WriteError('%s : character was not found.', __METHOD__); return false; } if (is_array(self::$equipmentCache)) { // Already converted, return true. return true; } $cache = explode(' ', self::$equipmentCache); if (!is_array($cache)) { WoW_Log::WriteError('%s : unable to convert equipmentCache field to array for character %s (GUID: %d)!', __METHOD__, self::$name, self::$guid); return false; } self::$equipmentCache = $cache; $cacheCount = count(self::$equipmentCache); if ($cacheCount < 37) { for ($i = $cacheCount; $i < 38; $i++) { self::$equipmentCache[$i] = null; } } return true; }