From: CiaranG Date: Tue, 8 Sep 2009 10:27:37 +0000 (+0100) Subject: Use a non-error-generating array key check to a) improve performance and b) not fill... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=afe1b8ec3df8d231ae9c6699da3a3947da285c00;p=quix0rs-gnu-social.git Use a non-error-generating array key check to a) improve performance and b) not fill the log file with crud --- diff --git a/lib/omb.php b/lib/omb.php index 0d62445991..7dca760c69 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);