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:
parent
6020d85191
commit
afe1b8ec3d
@ -135,7 +135,7 @@ function omb_broadcast_remote_subscribers($notice)
|
|||||||
$posted = array();
|
$posted = array();
|
||||||
|
|
||||||
while ($rp->fetch()) {
|
while ($rp->fetch()) {
|
||||||
if (!$posted[$rp->postnoticeurl]) {
|
if (!array_key_exists($rp->postnoticeurl, $posted)) {
|
||||||
common_log(LOG_DEBUG, 'Posting to ' . $rp->postnoticeurl);
|
common_log(LOG_DEBUG, 'Posting to ' . $rp->postnoticeurl);
|
||||||
if (omb_post_notice_keys($notice, $rp->postnoticeurl, $rp->token, $rp->secret)) {
|
if (omb_post_notice_keys($notice, $rp->postnoticeurl, $rp->token, $rp->secret)) {
|
||||||
common_log(LOG_DEBUG, 'Finished to ' . $rp->postnoticeurl);
|
common_log(LOG_DEBUG, 'Finished to ' . $rp->postnoticeurl);
|
||||||
|
Loading…
Reference in New Issue
Block a user