use array_key_exists instead of empty to test array key
This commit is contained in:
parent
2cebbead75
commit
2096c18e57
|
@ -1634,8 +1634,7 @@ class Notice extends Managed_DataObject
|
|||
foreach ($mention['mentioned'] as $mentioned) {
|
||||
|
||||
// skip if they're already covered
|
||||
|
||||
if (!empty($replied[$mentioned->id])) {
|
||||
if (array_key_exists($mentioned->id, $replied)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user