From 2096c18e57dbf502be3a9d88439bd769e87c179f Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 2 Jun 2015 13:13:55 +0200 Subject: [PATCH] use array_key_exists instead of empty to test array key --- classes/Notice.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 38e31cb274..ed2686a383 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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; } -- 2.39.5