public function getCategory($category_id)
{
if (is_numeric($category_id)) {
$this->db->from('categories');
$this->db->where('category_id', $category_id);
if (APPDIR === MAINDIR) {
$this->db->where('status', '1');
}
$query = $this->db->get();
if ($query->num_rows() > 0) {
return $query->row_array();
}
}
}