From ce522a76bad6bd5a3fecd1311b18351fbfa3186d Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 4 Aug 2015 11:09:37 +0200 Subject: [PATCH] Fix wrong URL see #7783 --- main/user/subscribe_user.php | 4 +--- main/user/user.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/main/user/subscribe_user.php b/main/user/subscribe_user.php index 4cd8afc898..4b5ba053d7 100755 --- a/main/user/subscribe_user.php +++ b/main/user/subscribe_user.php @@ -93,7 +93,6 @@ if (isset($_REQUEST['register'])) { unset($_SESSION['session_user_name']); } - header('Location:'.api_get_path(WEB_CODE_PATH).'user/user.php?'.api_get_cidreq().'&type='.$type); exit; } @@ -192,7 +191,7 @@ $table = new SortableTable( ($is_western_name_order xor $sort_by_first_name) ? 3 : 2 ); $parameters['keyword'] = $keyword; -$parameters['type'] = COURSEMANAGER; +$parameters['type'] = $type; $table->set_additional_parameters($parameters); $col = 0; $table->set_header($col ++, '', false); @@ -220,7 +219,6 @@ if (!empty($_POST['keyword'])) { echo '
'.get_lang('SearchResultsFor').' '.$keyword_name.'
'; } - Display :: display_header($tool_name, "User"); // Build search-form diff --git a/main/user/user.php b/main/user/user.php index ee32a9fb80..35de67cb77 100755 --- a/main/user/user.php +++ b/main/user/user.php @@ -935,7 +935,7 @@ if (api_is_allowed_to_edit(null, true)) { switch ($type) { case STUDENT: $selectedTab = 1; - $url = api_get_path(WEB_CODE_PATH).'user/subscribe_user.php?'.api_get_cidreq().''; + $url = api_get_path(WEB_CODE_PATH).'user/subscribe_user.php?'.api_get_cidreq().'&type='.STUDENT; break; case COURSEMANAGER: $selectedTab = 2;