use array_key_exists instead of empty to test array key

This commit is contained in:
Mikael Nordfeldth 2015-06-02 13:13:55 +02:00
parent 2cebbead75
commit 2096c18e57
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}