Skip to content

Commit

Permalink
fix(核心): 修复置顶通知消息处理错误 #430
Browse files Browse the repository at this point in the history
fix #430
  • Loading branch information
medz committed Nov 19, 2018
1 parent 16f3fd9 commit ada0329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Support/PinnedsNotificationEventer.php
Expand Up @@ -71,7 +71,7 @@ public function dispatch()
$notifications = collect($this->events->dispatch($this->prefix));

$notifications = $notifications->reject(function ($notification) {
return ! class_exists($notification['namespace']) || array_diff_key($this->fillable, $notification);
return (! isset($notification['namespace']) && $notification['namespace'] && class_exists($notification['namespace'])) || array_diff_key($this->fillable, $notification);
});

return $notifications;
Expand Down

0 comments on commit ada0329

Please sign in to comment.