We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b9f21b commit 43e9337Copy full SHA for 43e9337
main/social/myfiles.php
@@ -81,11 +81,11 @@ function register_friend(element_input) {
81
if (isset($_GET['cidReq'])) {
82
$actions = Display::url(
83
Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('Documents').' ('.get_lang('Course').')'),
84
- api_get_self().'?'.api_get_cidreq().'&id='.$_GET['parent_id']
+ api_get_self().'?'.api_get_cidreq().'&id='.(int) $_GET['parent_id']
85
);
86
}
87
88
-if (api_get_setting('allow_social_tool') == 'true') {
+if (api_get_setting('allow_social_tool') === 'true') {
89
Session::write('this_section', SECTION_SOCIAL);
90
$interbreadcrumb[] = [
91
'url' => 'profile.php',
0 commit comments