diff --git a/main/dropbox/dropbox_init.inc.php b/main/dropbox/dropbox_init.inc.php
index 34031d7b1f..4c6bc0a458 100644
--- a/main/dropbox/dropbox_init.inc.php
+++ b/main/dropbox/dropbox_init.inc.php
@@ -93,7 +93,8 @@ require_once(api_get_path(LIBRARY_PATH).'/document.lib.php');
$user_id = api_get_user_id();
$course_code = $_course['sysCode'];
$course_info = Database::get_course_info($course_code);
-$is_course_member = CourseManager::is_user_subscribed_in_real_or_linked_course($user_id, $course_info);
+
+$is_course_member = CourseManager::is_user_subscribed_in_real_or_linked_course($user_id, $course_code);
/*
diff --git a/main/dropbox/index.php b/main/dropbox/index.php
index 8b23c1ac9a..921fe608f6 100644
--- a/main/dropbox/index.php
+++ b/main/dropbox/index.php
@@ -232,7 +232,7 @@ foreach ($dropbox_categories as $category) {
// ACTIONS
-if (!$_GET['view'] OR $_GET['view']=='received' OR $dropbox_cnf['sent_received_tabs']==false) {
+if ( $_GET['view']=='received' OR $dropbox_cnf['sent_received_tabs']==false) {
//echo '
'.get_lang('ReceivedFiles').'
';
// This is for the categories
@@ -250,12 +250,12 @@ if (!$_GET['view'] OR $_GET['view']=='received' OR $dropbox_cnf['sent_received_t
echo '
'.get_lang('Root')."\n";
$movelist[0] = 'Root'; // move_received selectbox content
} else {
- echo '
'.get_lang('AddNewCategory').'';
+ echo '
'.get_lang('AddNewCategory').'';
}
echo '';
}
-if ($_GET['view']=='sent' OR $dropbox_cnf['sent_received_tabs']==false) {
+if (!$_GET['view'] OR $_GET['view']=='sent' OR $dropbox_cnf['sent_received_tabs']==false) {
//echo ''.get_lang('SentFiles').'
';
// This is for the categories
@@ -289,8 +289,8 @@ if ($dropbox_cnf['sent_received_tabs']) {
?>
'.get_lang('ReceivedFiles').'';
// This is for the categories
@@ -444,7 +444,7 @@ if (!$_GET['view'] OR $_GET['view']=='received' OR $dropbox_cnf['sent_received_t
SENT FILES
-----------------------------------------------------------
*/
-if ($_GET['view']=='sent' OR $dropbox_cnf['sent_received_tabs']==false) {
+if (!$_GET['view'] OR $_GET['view']=='sent' OR $dropbox_cnf['sent_received_tabs']==false) {
//echo ''.get_lang('SentFiles').'
';
// This is for the categories