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

@@ 3329-3331 (lines=3) @@
3326
3327
					$selected = '';
3328
3329
					if ( isset( $_REQUEST['list'] ) && $_REQUEST['list'] == 'favourite' && isset( $_REQUEST['stype'] ) && $_REQUEST['stype'] == $key && isset( $_REQUEST['geodir_dashbord'] ) ) {
3330
						$selected = 'selected="selected"';
3331
					}
3332
					/**
3333
					 * Filter favorite listing link.
3334
					 *
@@ 3375-3377 (lines=3) @@
3372
					$listing_link = geodir_getlink( $author_link, array( 'stype' => $key ), false );
3373
3374
					$selected = '';
3375
					if ( ! isset( $_REQUEST['list'] ) && isset( $_REQUEST['geodir_dashbord'] ) && isset( $_REQUEST['stype'] ) && $_REQUEST['stype'] == $key ) {
3376
						$selected = 'selected="selected"';
3377
					}
3378
3379
					/**
3380
					 * Filter my listing link.