From: Mikael Nordfeldth Date: Tue, 2 Jun 2015 11:13:55 +0000 (+0200) Subject: use array_key_exists instead of empty to test array key X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2096c18e57dbf502be3a9d88439bd769e87c179f;p=quix0rs-gnu-social.git use array_key_exists instead of empty to test array key --- 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; }