Code Duplication    Length = 5-5 lines in 2 locations

application/modules/menu/admin.php 2 locations

@@ 1062-1066 (lines=5) @@
1059
        //        $this->db->where('lang_alias', 0);
1060
        $this->db->where('category', $cat_id);
1061
1062
        if ($cur_page == 0) {
1063
            $pages = $this->db->get('content', $per_page);
1064
        } else {
1065
            $pages = $this->db->get('content', $per_page, $per_page * $cur_page);
1066
        }
1067
1068
        if ($pages->num_rows() > 0) {
1069
            $pages = $pages->result_array();
@@ 1106-1110 (lines=5) @@
1103
        $this->db->where('lang', $this->default_lang_id);
1104
        $this->db->like('title', $this->input->post('search'));
1105
1106
        if ($cur_page == 0) {
1107
            $pages = $this->db->get('content', $per_page);
1108
        } else {
1109
            $pages = $this->db->get('content', $per_page, $per_page * $cur_page);
1110
        }
1111
1112
        if ($pages->num_rows() > 0) {
1113
            $pages = $pages->result_array();