Code Duplication    Length = 4-4 lines in 2 locations

mod/b_extended_profile/start.php 1 location

@@ 100-103 (lines=4) @@
97
    }
98
99
    // short circuit if invalid or banned username
100
    if (!$user || ($user->isBanned() && !elgg_is_admin_logged_in())) {
101
        register_error(elgg_echo('profile:notfound'));
102
        forward();
103
    }
104
105
    $action = NULL;
106
    if (isset($page[1])) {

mod/profile/start.php 1 location

@@ 64-67 (lines=4) @@
61
	}
62
63
	// short circuit if invalid or banned username
64
	if (!$user || ($user->isBanned() && !elgg_is_admin_logged_in())) {
65
		register_error(elgg_echo('profile:notfound'));
66
		forward();
67
	}
68
69
	$action = NULL;
70
	if (isset($page[1])) {