Code Duplication    Length = 5-5 lines in 2 locations

add.php 1 location

@@ 312-316 (lines=5) @@
309
                    $form->addElement(new XoopsFormCaptcha(_ADSLIGHT_CAPTCHA, "xoopscaptcha", false), true);
310
                }
311
        */
312
        if ('0' != $premium) {
313
            $form->addElement(new XoopsFormHidden('premium', 'yes'), false);
314
        } else {
315
            $form->addElement(new XoopsFormHidden('premium', 'no'), false);
316
        }
317
318
        if ('1' == $cat_moderate) {
319
            $form->addElement(new XoopsFormHidden('valid', 'No'), false);

addlisting.php 1 location

@@ 308-312 (lines=5) @@
305
        //  $form->addElement(new XoopsFormCaptcha(_ADSLIGHT_CAPTCHA, "xoopscaptcha", false), true);
306
        //}
307
308
        if ('0' != $premium) {
309
            $form->addElement(new XoopsFormHidden('premium', 'yes'), false);
310
        } else {
311
            $form->addElement(new XoopsFormHidden('premium', 'no'), false);
312
        }
313
314
        if ('1' == $cat_moderate) {
315
            $form->addElement(new XoopsFormHidden('valid', 'No'), false);