From 310b63e606d6a7b13a7b5c99796785012dbba6f3 Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Thu, 27 Aug 2015 12:18:42 +0700 Subject: [PATCH] Finalizing the category --- system/includes/functions.php | 4 ++++ 1 file changed, 4 insertions(+) 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) {