File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 13
13
14
14
require_once __DIR__ .'/../inc/global.inc.php ' ;
15
15
16
+ api_block_anonymous_users ();
17
+
16
18
$ user_id = api_get_user_id ();
17
19
$ show_full_profile = true ;
18
20
// social tab
19
- $ this_section = SECTION_SOCIAL ;
20
21
Session::erase ('this_section ' );
22
+ $ this_section = SECTION_SOCIAL ;
21
23
22
- api_block_anonymous_users ();
23
-
24
- if (api_get_setting ('allow_social_tool ' ) != 'true ' ) {
24
+ if (api_get_setting ('allow_social_tool ' ) !== 'true ' ) {
25
25
$ url = api_get_path (WEB_CODE_PATH ).'auth/profile.php ' ;
26
26
header ('Location: ' .$ url );
27
27
exit ;
Original file line number Diff line number Diff line change 17
17
api_not_allowed (true );
18
18
}
19
19
20
+ $ this_section = SECTION_SOCIAL ;
21
+
20
22
$ htmlHeadXtra [] = '
21
23
<script>
22
24
function denied_friend (element_input) {
You can’t perform that action at this time.
0 commit comments