Code Duplication    Length = 7-10 lines in 2 locations

src/filters/create.php 1 location

@@ 218-227 (lines=10) @@
215
                    }
216
                }
217
218
                if (($filter_flags & FILTER_FLAG_ASSIGNED_TO) != 0)
219
                {
220
                    foreach ($_REQUEST['assigned_to'] as $item)
221
                    {
222
                        if ($item != 0)
223
                        {
224
                            dal_query('filters/facreate.sql', $id, FILTER_FLAG_ASSIGNED_TO, $item);
225
                        }
226
                    }
227
                }
228
229
                if ($template_id != 0)
230
                {

src/filters/modify.php 1 location

@@ 136-142 (lines=7) @@
133
                }
134
            }
135
136
            if (($filter_flags & FILTER_FLAG_ASSIGNED_TO) != 0)
137
            {
138
                foreach ($_REQUEST['assigned_to'] as $item)
139
                {
140
                    dal_query('filters/facreate.sql', $id, FILTER_FLAG_ASSIGNED_TO, $item);
141
                }
142
            }
143
144
            switch ($filter['filter_type'])
145
            {