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

@@ 3356-3358 (lines=3) @@
3353
3354
					$selected = '';
3355
3356
					if ( isset( $_REQUEST['list'] ) && $_REQUEST['list'] == 'favourite' && isset( $_REQUEST['stype'] ) && $_REQUEST['stype'] == $key && isset( $_REQUEST['geodir_dashbord'] ) ) {
3357
						$selected = 'selected="selected"';
3358
					}
3359
					/**
3360
					 * Filter favorite listing link.
3361
					 *
@@ 3402-3404 (lines=3) @@
3399
					$listing_link = geodir_getlink( $author_link, array( 'stype' => $key ), false );
3400
3401
					$selected = '';
3402
					if ( ! isset( $_REQUEST['list'] ) && isset( $_REQUEST['geodir_dashbord'] ) && isset( $_REQUEST['stype'] ) && $_REQUEST['stype'] == $key ) {
3403
						$selected = 'selected="selected"';
3404
					}
3405
3406
					/**
3407
					 * Filter my listing link.