Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

limit comments to those that have responded Yes or Maybe

  • Loading branch information...
commit 731db9dac436a9d41040ff0a11d76b747a4787b3 1 parent 8392d5d
Mike Valstar authored January 22, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  class/event.class.php
2  class/event.class.php
@@ -128,7 +128,7 @@ function post_comment($user, $comment_text){
128 128
         $subject = "KG Game Knight: {$user->name_first} {$user->name_last} commented on: " . $this->event_name;
129 129
         $message = "{$user->name_first} {$user->name_last} wrote: \r\n\r\n {$comment_text}";
130 130
         foreach($this->participants() as $v){
131  
-            if($user->id != $v['user_pk']){
  131
+            if($user->id != $v['user_pk'] && $v['response'] != 'No'){
132 132
                 email::send($v['email'], $v['name_first'] . ' ' . $v['name_last'], $subject, $message);
133 133
             }
134 134
         }

0 notes on commit 731db9d

Please sign in to comment.
Something went wrong with that request. Please try again.