Code Duplication    Length = 6-6 lines in 4 locations

src/filters/create.php 2 locations

@@ 420-425 (lines=6) @@
417
        ? dal_query('filters/members2.sql', $_SESSION[VAR_USERID])
418
        : dal_query('filters/members.sql',  $project_id);
419
420
    while (($row = $rs->fetch()))
421
    {
422
        $xml .= '<listitem value="' . $row['account_id'] . '">'
423
              . ustr2html(sprintf('%s (%s)', $row['fullname'], account_get_username($row['username'])))
424
              . '</listitem>';
425
    }
426
427
    $xml .= '</listbox>'
428
          . '</control>'
@@ 440-445 (lines=6) @@
437
438
    $rs->seek();
439
440
    while (($row = $rs->fetch()))
441
    {
442
        $xml .= '<listitem value="' . $row['account_id'] . '">'
443
              . ustr2html(sprintf('%s (%s)', $row['fullname'], account_get_username($row['username'])))
444
              . '</listitem>';
445
    }
446
447
    $xml .= '</listbox>'
448
          . '</control>'

src/groups/members.php 1 location

@@ 208-213 (lines=6) @@
205
206
$rs = group_amongs($id);
207
208
while (($row = $rs->fetch()))
209
{
210
    $xml .= '<listitem value="' . $row['account_id'] . '">'
211
          . ustr2html(sprintf('%s (%s)', $row['fullname'], account_get_username($row['username'])))
212
          . '</listitem>';
213
}
214
215
$xml .= '</listbox>'
216
      . '</control>'

src/projects/gmembers.php 1 location

@@ 214-219 (lines=6) @@
211
212
$rs = group_amongs($id);
213
214
while (($row = $rs->fetch()))
215
{
216
    $xml .= '<listitem value="' . $row['account_id'] . '">'
217
          . ustr2html(sprintf('%s (%s)', $row['fullname'], account_get_username($row['username'])))
218
          . '</listitem>';
219
}
220
221
$xml .= '</listbox>'
222
      . '</control>'