Skip to content

Commit 43e9337

Browse files
committed
Add int casting
1 parent 5b9f21b commit 43e9337

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/social/myfiles.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ function register_friend(element_input) {
8181
if (isset($_GET['cidReq'])) {
8282
$actions = Display::url(
8383
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']
84+
api_get_self().'?'.api_get_cidreq().'&id='.(int) $_GET['parent_id']
8585
);
8686
}
8787

88-
if (api_get_setting('allow_social_tool') == 'true') {
88+
if (api_get_setting('allow_social_tool') === 'true') {
8989
Session::write('this_section', SECTION_SOCIAL);
9090
$interbreadcrumb[] = [
9191
'url' => 'profile.php',

0 commit comments

Comments
 (0)