| @@ 993-999 (lines=7) @@ | ||
| 990 | continue; |
|
| 991 | ||
| 992 | // What groups are we looking at here? |
|
| 993 | if (empty($row['additional_groups'])) |
|
| 994 | $groups = array($row['id_group'], $row['id_post_group']); |
|
| 995 | else |
|
| 996 | $groups = array_merge( |
|
| 997 | array($row['id_group'], $row['id_post_group']), |
|
| 998 | explode(',', $row['additional_groups']) |
|
| 999 | ); |
|
| 1000 | ||
| 1001 | // Excluded groups? |
|
| 1002 | if (array_intersect($groups, $context['recipients']['exclude_groups'])) |
|
| @@ 6103-6109 (lines=7) @@ | ||
| 6100 | ||
| 6101 | $row = $smcFunc['db_fetch_assoc']($request); |
|
| 6102 | ||
| 6103 | if (empty($row['additional_groups'])) |
|
| 6104 | $groups = array($row['id_group'], $user_settings['id_post_group']); |
|
| 6105 | else |
|
| 6106 | $groups = array_merge( |
|
| 6107 | array($row['id_group'], $user_settings['id_post_group']), |
|
| 6108 | explode(',', $row['additional_groups']) |
|
| 6109 | ); |
|
| 6110 | ||
| 6111 | // Because history has proven that it is possible for groups to go bad - clean up in case. |
|
| 6112 | foreach ($groups as $k => $v) |
|