Code Duplication    Length = 7-7 lines in 2 locations

htdocs/api/coord.ch/newest.php 2 locations

@@ 25-31 (lines=7) @@
22
while ($r = sql_fetch_assoc($rs)) {
23
    if ($bFirstRow === true) {
24
        $bFirstCol = true;
25
        foreach ($r as $k => $v) {
26
            if ($bFirstCol === false) {
27
                echo ';';
28
            }
29
            echo strGetCsv($k);
30
            $bFirstCol = false;
31
        }
32
        echo "\n";
33
34
        $bFirstRow = false;
@@ 38-44 (lines=7) @@
35
    }
36
37
    $bFirstCol = true;
38
    foreach ($r as $k => $v) {
39
        if ($bFirstCol === false) {
40
            echo ';';
41
        }
42
        echo strGetCsv($v);
43
        $bFirstCol = false;
44
    }
45
46
    echo "\n";
47
}