| @@ -243,8 +243,12 @@ | ||
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | public function sendMailAfterComment($commentId, $recipientUserIds) |
| 246 | 246 | { |
| 247 | + if (empty($recipientUserIds)) { | |
| 248 | + return; | |
| 249 | + } | |
| 250 | + | |
| 247 | 251 | $current_user_id = get_current_user_id(); |
| 248 | 252 | |
| 249 | 253 | /* this will run in background as soon as possible */ |
| 250 | 254 | /* sending Model or Model Instance won't work here */ |