浏览代码

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';
         }