Code Duplication    Length = 7-7 lines in 2 locations

editprofile.php 2 locations

@@ 74-80 (lines=7) @@
71
            }
72
73
            // Selectbox for "interested in gender(s)"
74
            if (0 != smallworldGetValfromArray('interestedin', 'smallworldusethesefields')) {
75
                $nr          = unserialize($r['intingender']);
76
                $intInGender = $item->RetrieveRadio('intingender', $arr01, $nr, $selected = null);
77
                $xoopsTpl->append('intingender', $intInGender);
78
            } else {
79
                $xoopsTpl->assign('show_interestedin', 'no');
80
            }
81
82
            // Dropdown for marital status
83
            if (0 != smallworldGetValfromArray('relationshipstatus', 'smallworldusethesefields')) {
@@ 94-100 (lines=7) @@
91
                $xoopsTpl->assign('show_relationshipstatus', 'no');
92
            }
93
94
            if (0 != smallworldGetValfromArray('lookingfor', 'smallworldusethesefields')) {
95
                $nr1         = unserialize($r['searchrelat']);
96
                $searchrelat = $item->RetrieveRadio('searchrelat', $arr03, $nr1, $selected = null);
97
                $xoopsTpl->append('searchrelat', $searchrelat);
98
            } else {
99
                $xoopsTpl->assign('show_lookingfor', 'no');
100
            }
101
102
            if (0 != smallworldGetValfromArray('birthday', 'smallworldusethesefields')) {
103
                // Select Birthday dd-mm-Y