Code Duplication    Length = 9-11 lines in 2 locations

main/dropbox/dropbox_functions.inc.php 2 locations

@@ 569-577 (lines=9) @@
566
    // List of all users in this course and all virtual courses combined with it
567
    if (api_get_session_id()) {
568
        $complete_user_list_for_dropbox = array();
569
        if (api_get_setting('dropbox_allow_student_to_student') == 'true' || $_user['status'] != STUDENT) {
570
            $complete_user_list_for_dropbox = CourseManager:: get_user_list_from_course_code(
571
                $course_info['code'],
572
                api_get_session_id(),
573
                null,
574
                null,
575
                0
576
            );
577
        }
578
579
        $complete_user_list2 = CourseManager::get_coach_list_from_course_code(
580
            $course_info['code'],
@@ 610-620 (lines=11) @@
607
            );
608
        }
609
    } else {
610
        if (api_get_setting('dropbox_allow_student_to_student') == 'true' || $_user['status'] != STUDENT) {
611
            $complete_user_list_for_dropbox = CourseManager::get_user_list_from_course_code(
612
                $course_info['code'],
613
                api_get_session_id()
614
            );
615
        } else {
616
            $complete_user_list_for_dropbox = CourseManager::get_teacher_list_from_course_code(
617
                $course_info['code'],
618
                false
619
            );
620
        }
621
    }
622
623
    if (!empty($complete_user_list_for_dropbox)) {