Code Duplication    Length = 13-15 lines in 2 locations

application/modules/cfcm/cfcm.php 1 location

@@ 365-379 (lines=15) @@
362
     * @param string $name
363
     * @return bool|array
364
     */
365
    public function get_field($name) {
366
367
        $this->db->limit(1);
368
        $this->db->where('field_name', $name);
369
        $query = $this->db->get('content_fields');
370
371
        if ($query->num_rows() == 1) {
372
            $data = $query->row_array();
373
            $data['data'] = unserialize($data['data']);
374
375
            return $data;
376
        } else {
377
            return false;
378
        }
379
    }
380
381
    /**
382
     * Display template file

application/modules/menu/models/menu_model.php 1 location

@@ 167-179 (lines=13) @@
164
     * @param string $name
165
     * @return false|array
166
     */
167
    public function get_module_link($name) {
168
169
        $this->db->select('identif');
170
        $this->db->where('name', $name);
171
        $query = $this->db->get('components', 1);
172
173
        if ($query->num_rows() == 1) {
174
            $data = $query->row_array();
175
            return $data['identif'];
176
        } else {
177
            return FALSE;
178
        }
179
    }
180
181
}
182