Update pagination.php

// added a condition to check if the get parameter is not higher than the total number of pages  !!
		$total_pages=$this->pages(); 
				if(( $_GET[$this->parameter] )>$total_pages)
				{
    					$this->get =1;
				}