From 192a6734722b72fa38e97acfda8bf716eaddd3a8 Mon Sep 17 00:00:00 2001 From: CiaranG Date: Sat, 23 Aug 2008 01:35:48 -0400 Subject: 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(-) (limited to 'lib/jabber.php') diff --git a/lib/jabber.php b/lib/jabber.php index 415bb45d7..cba7f62c4 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__); -- cgit v1.2.3-54-g00ecf