Ver Fonte

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

Angel Fernando Quiroz Campos há 6 anos atrás
pai
commit
ba32004c0b
1 ficheiros alterados com 1 adições e 1 exclusões
  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';
         }