Code Duplication    Length = 3-3 lines in 4 locations

geodirectory-functions/user_functions.php 2 locations

@@ 68-70 (lines=3) @@
65
66
                $selected = '';
67
68
                if (isset($_REQUEST['list']) && $_REQUEST['list'] == 'favourite' && isset($_REQUEST['stype']) && $_REQUEST['stype'] == $key && isset($_REQUEST['geodir_dashbord'])) {
69
                    $selected = 'selected="selected"';
70
                }
71
                /**
72
                 * Filter favorite listing link.
73
                 *
@@ 136-138 (lines=3) @@
133
                $listing_link = geodir_getlink($author_link, array('stype' => $key), false);
134
135
                $selected = '';
136
                if (!isset($_REQUEST['list']) && isset($_REQUEST['geodir_dashbord']) && isset($_REQUEST['stype']) && $_REQUEST['stype'] == $key) {
137
                    $selected = 'selected="selected"';
138
                }
139
140
                /**
141
                 * Filter my listing link.

geodirectory-functions/general_functions.php 2 locations

@@ 2975-2977 (lines=3) @@
2972
2973
                    $selected = '';
2974
2975
                    if (isset($_REQUEST['list']) && $_REQUEST['list'] == 'favourite' && isset($_REQUEST['stype']) && $_REQUEST['stype'] == $key && isset($_REQUEST['geodir_dashbord'])) {
2976
                        $selected = 'selected="selected"';
2977
                    }
2978
                    /**
2979
                     * Filter favorite listing link.
2980
                     *
@@ 3019-3021 (lines=3) @@
3016
                    $listing_link = geodir_getlink($author_link, array('stype' => $key), false);
3017
3018
                    $selected = '';
3019
                    if (!isset($_REQUEST['list']) && isset($_REQUEST['geodir_dashbord']) && isset($_REQUEST['stype']) && $_REQUEST['stype'] == $key) {
3020
                        $selected = 'selected="selected"';
3021
                    }
3022
3023
                    /**
3024
                     * Filter my listing link.