remove pagination if nb_per_page = 0 or is not defined