Skip to content

Commit 431ca2d

Browse files
committed
! tests!
1 parent f7011f1 commit 431ca2d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sources/subs/Mentions.subs.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*
1212
*/
1313

14-
use ElkArte\MembersList;
1514
use ElkArte\User;
1615

1716
/**
@@ -465,14 +464,14 @@ function getMentionTypes($user, $type = 'user')
465464
// Drop ones they do not have enabled (primarily used to drop watchedtopic / watched board)
466465
foreach ($enabled as $key => $notificationType)
467466
{
468-
if (!isset($notificationType, $userAllEnabled[User::$info->id][$notificationType]))
467+
if (!isset($notificationType, $userAllEnabled[$user][$notificationType]))
469468
{
470469
unset($enabled[$key]);
471470
}
472471
}
473472

474473
// Filter the remaining as requested
475-
foreach ($userAllEnabled[User::$info->id] as $notificationType => $allowedMethods)
474+
foreach ($userAllEnabled[$user] as $notificationType => $allowedMethods)
476475
{
477476
if (!in_array('notification', $allowedMethods, true))
478477
{

0 commit comments

Comments
 (0)