Update CatList.php

function get_number_posts was throwing an exception if there are no posts in the database. I changed the line to: return ($this->params['numberposts']) ? $this->params['numberposts'] : 1;