Use a non-error-generating array key check to a) improve performance and b) not fill the log file with crud

This commit is contained in:
CiaranG 2009-09-08 11:27:37 +01:00
parent 6020d85191
commit afe1b8ec3d
1 changed files with 1 additions and 1 deletions

View File

@ -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);