Code Duplication    Length = 6-6 lines in 2 locations

letter.php 2 locations

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