Code Duplication    Length = 7-7 lines in 3 locations

letter.php 2 locations

@@ 88-94 (lines=7) @@
85
        $eachentry['id']   = (int)$entryID;
86
        $eachentry['term'] = ucfirst($myts->htmlSpecialChars($term));
87
88
        if (($xoopsModuleConfig['com_rule'] != 0) || (($xoopsModuleConfig['com_rule'] != 0) && is_object($xoopsUser))) {
89
            if ($comments != 0) {
90
                $eachentry['comments'] = "<a href='entry.php?entryID=" . $eachentry['id'] . "'>" . $comments . '&nbsp;' . _COMMENTS . '</a>';
91
            } else {
92
                $eachentry['comments'] = '';
93
            }
94
        }
95
96
        if (!XOOPS_USE_MULTIBYTES) {
97
            $eachentry['definition'] = $myts->displayTarea($definition, $html, $smiley, $xcodes, 1, $breaks);
@@ 178-184 (lines=7) @@
175
            $eachentry['init'] = $init;
176
        }
177
178
        if (($xoopsModuleConfig['com_rule'] != 0) || (($xoopsModuleConfig['com_rule'] != 0) && is_object($xoopsUser))) {
179
            if ($comments != 0) {
180
                $eachentry['comments'] = "<a href='entry.php?entryID=" . $eachentry['id'] . "'>" . $comments . '&nbsp;' . _COMMENTS . '</a>';
181
            } else {
182
                $eachentry['comments'] = '';
183
            }
184
        }
185
        if (!XOOPS_USE_MULTIBYTES) {
186
            $eachentry['definition'] = $myts->displayTarea($definition, $html, $smiley, $xcodes, 1, $breaks);
187
        }

category.php 1 location

@@ 155-161 (lines=7) @@
152
                if (!XOOPS_USE_MULTIBYTES) {
153
                    $eachentry['definition'] = $myts->displayTarea($definition, $html, $smiley, $xcodes, 1, $breaks);
154
                }
155
                if (($xoopsModuleConfig['com_rule'] != 0)
156
                    || (($xoopsModuleConfig['com_rule'] != 0)
157
                        && is_object($xoopsUser))
158
                ) {
159
                    if ($comments != 0) {
160
                        $eachentry['comments'] = "<a href='entry.php?entryID=" . $eachentry['id'] . "'>" . $comments . '&nbsp;' . _COMMENTS . '</a>';
161
                    } else {
162
                        $eachentry['comments'] = '';
163
                    }
164
                }