From 192a6734722b72fa38e97acfda8bf716eaddd3a8 Mon Sep 17 00:00:00 2001 From: CiaranG Date: Sat, 23 Aug 2008 01:35:48 -0400 Subject: [PATCH] Prevent jabber.php error by checking key exists darcs-hash:20080823053548-f6e2c-dfc8a0acd9fb8589ed37e54c7d0d3d38afff34f5.gz --- lib/jabber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jabber.php b/lib/jabber.php index 415bb45d73..cba7f62c4c 100644 --- a/lib/jabber.php +++ b/lib/jabber.php @@ -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__);