We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef05e34 commit 9c1798bCopy full SHA for 9c1798b
models/User.php
@@ -519,9 +519,15 @@ public function getNotificationVars()
519
/*
520
* Extensibility
521
*/
522
- $result = Event::fire('winter.user.getNotificationVars', [$this]);
523
- if ($result && is_array($result)) {
524
- $vars = call_user_func_array('array_merge', $result) + $vars;
+ $results = Event::fire('winter.user.getNotificationVars', [$this]);
+ if ($results && is_array($results)) {
+ $tempResults = [];
525
+ foreach ($results as $result) {
526
+ if ($result && is_array($result)) {
527
+ $tempResults = array_merge($tempResults, $result);
528
+ }
529
530
+ $vars = $tempResults + $vars;
531
}
532
533
return $vars;
0 commit comments