Update adapter.php