Permalink
Browse files

limit comments to those that have responded Yes or Maybe

  • Loading branch information...
mikevalstar committed Jan 22, 2013
1 parent 8392d5d commit 731db9dac436a9d41040ff0a11d76b747a4787b3
Showing with 1 addition and 1 deletion.
  1. +1 −1 class/event.class.php
View
@@ -128,7 +128,7 @@ function post_comment($user, $comment_text){
$subject = "KG Game Knight: {$user->name_first} {$user->name_last} commented on: " . $this->event_name;
$message = "{$user->name_first} {$user->name_last} wrote: \r\n\r\n {$comment_text}";
foreach($this->participants() as $v){
- if($user->id != $v['user_pk']){
+ if($user->id != $v['user_pk'] && $v['response'] != 'No'){
email::send($v['email'], $v['name_first'] . ' ' . $v['name_last'], $subject, $message);
}
}

0 comments on commit 731db9d

Please sign in to comment.