Code Duplication    Length = 5-5 lines in 2 locations

blocks/donat_o_meter.php 1 location

@@ 158-162 (lines=5) @@
155
                $var .= "<tr><td style=\"width: 100%; text-align: {$dmalign}\" colspan=\"2\">\n";
156
                // Observe the user's wish regarding revealing their name
157
                $muser_id = $row_Recordset3['muser_id'];
158
                if( strcmp($row_Recordset3['showname'],"Yes") == 0 && ($userfoin = mgetusrinfo($muser_id))){
159
                    $var .= "<a href='".XOOPS_URL."/userinfo.php?uid=".$userfoin->getVar('uid')."'>".$userfoin->getVar('uname')."</a>\n";
160
                } else {
161
                    $var .= _MB_DON_ANONYMOUS_SHORT;
162
                }
163
                $var .= "&nbsp;";
164
                if( $dmshowamt ) {
165
                    $var .=  "(".$row_Recordset3['amt'].")";

blocks/donors.php 1 location

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