Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Mar 22, 2017
1 parent c135eec commit ada5baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Phphub/Handler/EmailHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private function _checkNecessary($type, User $toUser)
$user = User::find($toUser->id);

// 私信,如果已读
if ($type == 'new_message' || $user->message_count <= 0) {
if ($type == 'new_message' && $user->message_count <= 0) {
return true;
// 通知,如果已读
} elseif ($user->notification_count <= 0) {
Expand Down

0 comments on commit ada5baf

Please sign in to comment.