Updated code in update-server.php