Update Adapter.php