Skip to content

Commit

Permalink
Add notification system
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Aug 12, 2017
1 parent 1f98238 commit 8d2fea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function askQuestion($question, $project)
);

// Send notification to project manager
if (!empty($project)) {
if (!empty($project) && $project['manager'] > 0) {
Pi::service('notification')->send(
array(
$project['user']['email'] => $project['user']['name'],
Expand Down Expand Up @@ -95,7 +95,7 @@ public function answerQuestion($question, $answer, $project)
);

// Send notification to project manager
if (!empty($project)) {
if (!empty($project) && $project['manager'] > 0) {
Pi::service('notification')->send(
array(
$project['user']['email'] => $project['user']['name'],
Expand Down

0 comments on commit 8d2fea5

Please sign in to comment.