Code Duplication    Length = 5-5 lines in 2 locations

blocks/donat_o_meter.php 1 location

@@ 144-148 (lines=5) @@
141
                $var .= "<tr><td style=\"width: 100%; text-align: {$dmalign};\" colspan=\"2\">\n";
142
                // Observe the user's wish regarding revealing their name
143
                $muser_id = $row_Recordset3['muser_id'];
144
                if (strcmp($row_Recordset3['showname'], 'Yes') == 0 && ($userfoin = mgetUserInfo($muser_id))) {
145
                    $var .= "<a href='" . XOOPS_URL . '/userinfo.php?uid=' . $userfoin->getVar('uid') . "'>" . $userfoin->getVar('uname') . "</a>\n";
146
                } else {
147
                    $var .= _MB_DON_ANONYMOUS_SHORT;
148
                }
149
                $var .= '&nbsp;';
150
                if ($dmshowamt) {
151
                    $var .= '(' . $row_Recordset3['amt'] . ')';

blocks/donors.php 1 location

@@ 80-84 (lines=5) @@
77
            $ROWS_DONATORS .= "<td style=\"font-weight: bold;\">&nbsp; ";
78
79
            $muser_id = $row_Recordset1['muser_id'];
80
            if (strcmp($row_Recordset1['showname'], 'Yes') == 0 && ($userfoin = mgetUserInfo($muser_id))) {
81
                $ROWS_DONATORS .= "<a href='" . XOOPS_URL . '/userinfo.php?uid=' . $userfoin->getVar('uid') . "'>" . xdshorten($userfoin->getVar('uname')) . "</a>\n";
82
            } else {
83
                $ROWS_DONATORS .= _MB_DON_ANONYMOUS_SHORT;
84
            }
85
86
            $ROWS_DONATORS .= "</td>\n";
87
            if ($dmshowamt) {