]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use array_key_exists instead of empty to test array key
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 2 Jun 2015 11:13:55 +0000 (13:13 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 2 Jun 2015 11:14:57 +0000 (13:14 +0200)
classes/Notice.php

index 38e31cb2745189ff0a3b41ee1711f48803318e0e..ed2686a3836afb5e25c44c39008ff51cf1d27398 100644 (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;
                 }