Browse Source

Don't show other groups when in an announcement group

Julio Montoya 6 years ago
parent
commit
a2aba79911
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/AnnouncementManager.php

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

@@ -1138,7 +1138,7 @@ class AnnouncementManager
         while ($row = Database::fetch_array($result)) {
             // This is the iid of c_group_info
             $toGroup = $row['to_group_id'];
-            if (!empty($groupId) && $groupId != $toGroup) {
+            if (empty($row['to_user_id']) && !empty($groupId) && $groupId != $toGroup) {
                 continue;
             }
             switch ($toGroup) {