Skip to content

Commit b9b48e4

Browse files
committed
Minor - fix social menu BT#14929
1 parent d32d864 commit b9b48e4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

main/social/home.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414
require_once __DIR__.'/../inc/global.inc.php';
1515

16+
api_block_anonymous_users();
17+
1618
$user_id = api_get_user_id();
1719
$show_full_profile = true;
1820
// social tab
19-
$this_section = SECTION_SOCIAL;
2021
Session::erase('this_section');
22+
$this_section = SECTION_SOCIAL;
2123

22-
api_block_anonymous_users();
23-
24-
if (api_get_setting('allow_social_tool') != 'true') {
24+
if (api_get_setting('allow_social_tool') !== 'true') {
2525
$url = api_get_path(WEB_CODE_PATH).'auth/profile.php';
2626
header('Location: '.$url);
2727
exit;

main/social/myfiles.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
api_not_allowed(true);
1818
}
1919

20+
$this_section = SECTION_SOCIAL;
21+
2022
$htmlHeadXtra[] = '
2123
<script>
2224
function denied_friend (element_input) {

0 commit comments

Comments
 (0)