Procházet zdrojové kódy

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

Angel Fernando Quiroz Campos před 6 roky
rodič
revize
ba32004c0b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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';
         }