Code Duplication    Length = 6-6 lines in 2 locations

letter.php 2 locations

@@ 186-191 (lines=6) @@
183
                $letter_cats = $cats_arr;
184
            }
185
            //no cat
186
            if ($letter_cats == false) {
187
                $form = $letterObj->getForm();
188
                $content = $form->render();
189
                $xoopsTpl->assign('content', $content);
190
                break;
191
            }
192
            $letterObj->setVar('letter_cats', $letter_cats);
193
// IN PROGRESS
194
// IN PROGRESS
@@ 452-457 (lines=6) @@
449
            $letter_cats = $cat_arr;
450
        }
451
        //no cat
452
        if ($letter_cats == false) {
453
            $form = $letterObj->getForm();
454
            $content = $form->render();
455
            $xoopsTpl->assign('content', $content);
456
            break;
457
        }
458
459
        $letterObj->setVar('letter_cats', $letter_cats);
460