Code Duplication    Length = 8-8 lines in 2 locations

src/filters/filter.php 2 locations

@@ 232-239 (lines=8) @@
229
    ? dal_query('filters/membersx2.sql', $_SESSION[VAR_USERID], $id, FILTER_FLAG_CREATED_BY)
230
    : dal_query('filters/membersx.sql',  $project_id,           $id, FILTER_FLAG_CREATED_BY);
231
232
while (($row = $rs->fetch()))
233
{
234
    if ($row['is_selected'])
235
    {
236
        $flag = true;
237
        $xml .= '<text>' . ustr2html(sprintf('%s (%s)', $row['fullname'], account_get_username($row['username']))) . '</text>';
238
    }
239
}
240
241
if (!$flag)
242
{
@@ 266-273 (lines=8) @@
263
    ? dal_query('filters/membersx2.sql', $_SESSION[VAR_USERID], $id, FILTER_FLAG_ASSIGNED_TO)
264
    : dal_query('filters/membersx.sql',  $project_id,           $id, FILTER_FLAG_ASSIGNED_TO);
265
266
while (($row = $rs->fetch()))
267
{
268
    if ($row['is_selected'])
269
    {
270
        $flag = true;
271
        $xml .= '<text>' . ustr2html(sprintf('%s (%s)', $row['fullname'], account_get_username($row['username']))) . '</text>';
272
    }
273
}
274
275
if (!$flag)
276
{