diff --git src/includes/common/functions.php src/includes/common/functions.php
index 7101e96..51b8a35 100644
|
|
Login and visit the topic to unsubscribe from these emails.', 'bbpress' ), |
1175 | 1175 | $headers[] = 'Bcc: ' . get_userdata( $user_id )->user_email; |
1176 | 1176 | } |
1177 | 1177 | |
| 1178 | // Make sure someone is receiving an email before sending. |
| 1179 | if ( 1 === count( $headers ) ) { |
| 1180 | return false; |
| 1181 | } |
| 1182 | |
1178 | 1183 | /** Send it ***************************************************************/ |
1179 | 1184 | |
1180 | 1185 | // Custom headers |
… |
… |
Login and visit the topic to unsubscribe from these emails.', 'bbpress' ), |
1332 | 1337 | $headers[] = 'Bcc: ' . get_userdata( $user_id )->user_email; |
1333 | 1338 | } |
1334 | 1339 | |
| 1340 | // Make sure someone is receiving an email before sending. |
| 1341 | if ( 1 === count( $headers ) ) { |
| 1342 | return false; |
| 1343 | } |
| 1344 | |
1335 | 1345 | /** Send it ***************************************************************/ |
1336 | 1346 | |
1337 | 1347 | // Custom headers |