diff --git a/system/includes/functions.php b/system/includes/functions.php index 8f648d1..3276b26 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -453,6 +453,10 @@ function get_category($category, $page, $perpage) $posts = get_post_sorted(); $tmp = array(); + + if (empty($perpage)) { + $perpage = 10; + } foreach ($posts as $index => $v) {