projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cebbea
)
use array_key_exists instead of empty to test array key
author
Mikael Nordfeldth
<mmn@hethane.se>
Tue, 2 Jun 2015 11:13:55 +0000
(13:13 +0200)
committer
Mikael Nordfeldth
<mmn@hethane.se>
Tue, 2 Jun 2015 11:14:57 +0000
(13:14 +0200)
classes/Notice.php
patch
|
blob
|
history
diff --git
a/classes/Notice.php
b/classes/Notice.php
index 38e31cb2745189ff0a3b41ee1711f48803318e0e..ed2686a3836afb5e25c44c39008ff51cf1d27398 100644
(file)
--- 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;
}