diff options
author | CiaranG <ciaran@ciarang.com> | 2009-09-08 11:27:37 +0100 |
---|---|---|
committer | CiaranG <ciaran@ciarang.com> | 2009-09-08 11:27:37 +0100 |
commit | afe1b8ec3df8d231ae9c6699da3a3947da285c00 (patch) | |
tree | fa5b62bdd0d9d54fe431eaa1af43277f48cf13f3 | |
parent | 6020d85191bdd838acbeb40ab17035e378b0aee1 (diff) |
Use a non-error-generating array key check to a) improve performance and b) not fill the log file with crud
-rw-r--r-- | lib/omb.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/omb.php b/lib/omb.php index 0d6244599..7dca760c6 100644 --- a/lib/omb.php +++ b/lib/omb.php @@ -135,7 +135,7 @@ function omb_broadcast_remote_subscribers($notice) $posted = array(); while ($rp->fetch()) { - if (!$posted[$rp->postnoticeurl]) { + if (!array_key_exists($rp->postnoticeurl, $posted)) { common_log(LOG_DEBUG, 'Posting to ' . $rp->postnoticeurl); if (omb_post_notice_keys($notice, $rp->postnoticeurl, $rp->token, $rp->secret)) { common_log(LOG_DEBUG, 'Finished to ' . $rp->postnoticeurl); |