소스 검색

Fix send message in course chat for groups - refs #2513

Angel Fernando Quiroz Campos 6 년 전
부모
커밋
ba32004c0b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main/inc/lib/CourseChatUtils.php

+ 1 - 1
main/inc/lib/CourseChatUtils.php

@@ -96,7 +96,7 @@ class CourseChatUtils
         $document_path = api_get_path(SYS_COURSE_PATH).$courseInfo['path'].'/document';
         $basepath_chat = '/chat_files';
         $group_info = [];
-        if (!$this->groupId) {
+        if ($this->groupId) {
             $group_info = GroupManager::get_group_properties($this->groupId);
             $basepath_chat = $group_info['directory'].'/chat_files';
         }