Code Duplication    Length = 5-5 lines in 2 locations

application/modules/admin/admin_search.php 1 location

@@ 83-87 (lines=5) @@
80
                      ],
81
                     ];
82
83
            if ($hash == '') {
84
                $result = $this->search->execute($where, $offset);
85
            } else {
86
                $result = $this->search->query($hash, $offset);
87
            }
88
89
            //Pagination
90
            if ($result['total_rows'] > $this->search->row_count) {

application/modules/search/search.php 1 location

@@ 107-111 (lines=5) @@
104
            $dataForFoundInCategories = $this->countSearchResults($where);
105
            $dataForFoundInCategories = $dataForFoundInCategories->result_array();
106
107
            if ($hash == '') {
108
                $result = $this->execute($where, $offset);
109
            } else {
110
                $result = $this->query($hash, $offset);
111
            }
112
113
            if (!$this->search_title) {
114
                $this->search_title = $s_text;