Skip to content

Commit ada0329

Browse files
committed
fix(核心): 修复置顶通知消息处理错误 #430
fix #430
1 parent 16f3fd9 commit ada0329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Support/PinnedsNotificationEventer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function dispatch()
7171
$notifications = collect($this->events->dispatch($this->prefix));
7272

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

7777
return $notifications;

0 commit comments

Comments
 (0)