summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCiaranG <ciaran@ciarang.com>2008-08-23 01:35:48 -0400
committerCiaranG <ciaran@ciarang.com>2008-08-23 01:35:48 -0400
commit192a6734722b72fa38e97acfda8bf716eaddd3a8 (patch)
tree187b7657e5cd4d0a4ca46ee5f492a5efc195b4ef /lib
parent6593092bfd08efa9fe5dbd83a85a4fe1cac2b936 (diff)
Prevent jabber.php error by checking key exists
darcs-hash:20080823053548-f6e2c-dfc8a0acd9fb8589ed37e54c7d0d3d38afff34f5.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/jabber.php2
1 files changed, 1 insertions, 1 deletions
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__);