Code Duplication    Length = 7-8 lines in 2 locations

admin/controller/module/products.php 1 location

@@ 132-138 (lines=7) @@
129
        // Categories
130
        $this->load->model('catalog/category');
131
132
        if (isset($this->request->post['category'])) {
133
            $categories = $this->request->post['category'];
134
        } elseif (!empty($module_info['category'])) {
135
            $categories = $module_info['category'];
136
        } else {
137
            $categories = array();
138
        }
139
140
        $data['categories'] = array();
141

admin/controller/user/user.php 1 location

@@ 706-713 (lines=8) @@
703
                $filter_user_name = '';
704
            }
705
706
            if (isset($this->request->get['filter_user_group'])) {
707
                $filter_user_group = $this->request->get['filter_user_group'];
708
                if(empty($filter_user_group)){
709
                    $filter_user_group = '*';
710
                }
711
            } else {
712
                $filter_user_group = '';
713
            }
714
            
715
            if (isset($this->request->get['filter_firstname'])) {
716
                $filter_firstname = $this->request->get['filter_firstname'];