Code Duplication    Length = 7-7 lines in 3 locations

category.php 1 location

@@ 165-171 (lines=7) @@
162
                if (!XOOPS_USE_MULTIBYTES) {
163
                    $eachentry['definition'] = $myts->displayTarea($definition, $html, $smiley, $xcodes, 1, $breaks);
164
                }
165
                if (($xoopsModuleConfig['com_rule'] != 0)
166
                    || (($xoopsModuleConfig['com_rule'] != 0)
167
                        && is_object($xoopsUser))
168
                ) {
169
                    if ($comments != 0) {
170
                        $eachentry['comments'] = "<a href='entry.php?entryID="
171
                                                  . $eachentry['id']
172
                                                  . "'>"
173
                                                  . $comments
174
                                                  . '&nbsp;'

letter.php 2 locations

@@ 105-111 (lines=7) @@
102
        $eachentry['id']   = (int)$entryID;
103
        $eachentry['term'] = mb_ucfirst($myts->htmlSpecialChars($term));
104
105
        if (($xoopsModuleConfig['com_rule'] != 0) || (($xoopsModuleConfig['com_rule'] != 0) && is_object($xoopsUser))) {
106
            if ($comments != 0) {
107
                $eachentry['comments'] = "<a href='entry.php?entryID="
108
                                          . $eachentry['id']
109
                                          . "'>"
110
                                          . $comments
111
                                          . '&nbsp;'
112
                                          . _COMMENTS
113
                                          . '</a>';
114
            } else {
@@ 205-211 (lines=7) @@
202
            $eachentry['init'] = $init;
203
        }
204
205
        if (($xoopsModuleConfig['com_rule'] != 0) || (($xoopsModuleConfig['com_rule'] != 0) && is_object($xoopsUser))) {
206
            if ($comments != 0) {
207
                $eachentry['comments'] = "<a href='entry.php?entryID="
208
                                          . $eachentry['id']
209
                                          . "'>"
210
                                          . $comments
211
                                          . '&nbsp;'
212
                                          . _COMMENTS
213
                                          . '</a>';
214
            } else {