Prevent jabber.php error by checking key exists
darcs-hash:20080823053548-f6e2c-dfc8a0acd9fb8589ed37e54c7d0d3d38afff34f5.gz
This commit is contained in:
parent
6593092bfd
commit
192a673472
@ -247,7 +247,7 @@ function jabber_broadcast_notice($notice) {
|
||||
if ($sub->find()) {
|
||||
while ($sub->fetch()) {
|
||||
$user = User::staticGet($sub->subscriber);
|
||||
if ($user && $user->jabber && $user->jabbernotify && !$sent_to[$user->id]) {
|
||||
if ($user && $user->jabber && $user->jabbernotify && !array_key_exists($user->id,$sent_to)) {
|
||||
common_log(LOG_INFO,
|
||||
'Sending notice ' . $notice->id . ' to ' . $user->jabber,
|
||||
__FILE__);
|
||||
|
Loading…
Reference in New Issue
Block a user