forked from GNUsocial/gnu-social
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) {
|
foreach ($mention['mentioned'] as $mentioned) {
|
||||||
|
|
||||||
// skip if they're already covered
|
// skip if they're already covered
|
||||||
|
if (array_key_exists($mentioned->id, $replied)) {
|
||||||
if (!empty($replied[$mentioned->id])) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user