Update modal.php

Bugfix. Now you can use Pagination and clear the search form!