update file paginator.php
modify if condition statement