Code Duplication    Length = 5-5 lines in 2 locations

include/ro_contacthandler.php 2 locations

@@ 22-26 (lines=5) @@
19
        //echo "<br>kein leerzeichen";
20
        $struser = $strcontact;
21
        $struid  = getuid($struser);
22
        if ($struid == -1) {
23
            $strnew = $struser;
24
        } else {
25
            $strnew = "<a href='" . XOOPS_URL . '/userinfo.php?uid=' . $struid . "' title='" . $struser . "'>" . $struser . '</a>';
26
        }
27
    } else {
28
        //Leerzeichen vorhanden
29
        while ($pos2 !== false) {
@@ 52-56 (lines=5) @@
49
            //Rest ab letztem Leerzeichen einlesen
50
            $struser = substr($strcontact, $pos1);
51
            $struid  = getuid($struser);
52
            if ($struid == -1) {
53
                $strnew .= $struser;
54
            } else {
55
                $strnew = $strnew . "<a href='" . XOOPS_URL . '/userinfo.php?uid=' . $struid . "' title='" . $struser . "'>" . $struser . '</a>';
56
            }
57
        } else {
58
        }
59
    }