aboutsummaryrefslogtreecommitdiffstats
path: root/include/onepoll.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-28 16:54:33 -0700
committerfriendica <info@friendica.com>2012-04-28 16:54:33 -0700
commit4ff2e9a10358e68f7af90ebf6d50d75d3a6ed284 (patch)
tree3caaf9febc634bcddc8a0ba969f88bd071b671f3 /include/onepoll.php
parent44700b914da591ff3535358db34d035014611264 (diff)
downloadvolse-hubzilla-4ff2e9a10358e68f7af90ebf6d50d75d3a6ed284.tar.gz
volse-hubzilla-4ff2e9a10358e68f7af90ebf6d50d75d3a6ed284.tar.bz2
volse-hubzilla-4ff2e9a10358e68f7af90ebf6d50d75d3a6ed284.zip
a few more continues that should be returns
Diffstat (limited to 'include/onepoll.php')
-rw-r--r--include/onepoll.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/onepoll.php b/include/onepoll.php
index 722ebe846..51516d059 100644
--- a/include/onepoll.php
+++ b/include/onepoll.php
@@ -152,7 +152,7 @@ function onepoll_run($argv, $argc){
intval($contact['id'])
);
- continue;
+ return;
}
if(! strstr($handshake_xml,'<?xml')) {
@@ -161,7 +161,7 @@ function onepoll_run($argv, $argc){
dbesc(datetime_convert()),
intval($contact['id'])
);
- continue;
+ return;
}
@@ -188,7 +188,7 @@ function onepoll_run($argv, $argc){
}
if((intval($res->status) != 0) || (! strlen($res->challenge)) || (! strlen($res->dfrn_id)))
- continue;
+ return;
if(((float) $res->dfrn_version > 2.21) && ($contact['poco'] == '')) {
q("update contact set poco = '%s' where id = %d limit 1",
@@ -221,7 +221,7 @@ function onepoll_run($argv, $argc){
if($final_dfrn_id != $orig_id) {
logger('poller: ID did not decode: ' . $contact['id'] . ' orig: ' . $orig_id . ' final: ' . $final_dfrn_id);
// did not decode properly - cannot trust this site
- continue;
+ return;
}
$postvars['dfrn_id'] = $idtosend;
@@ -251,7 +251,7 @@ function onepoll_run($argv, $argc){
// Are we allowed to import from this person?
if($contact['rel'] == CONTACT_IS_FOLLOWER || $contact['blocked'] || $contact['readonly'])
- continue;
+ return;
$xml = fetch_url($contact['poll']);
}
@@ -261,7 +261,7 @@ function onepoll_run($argv, $argc){
$mail_disabled = ((function_exists('imap_open') && (! get_config('system','imap_disabled'))) ? 0 : 1);
if($mail_disabled)
- continue;
+ return;
logger("onepoll: Mail: Enabled", LOGGER_DEBUG);
@@ -458,7 +458,7 @@ function onepoll_run($argv, $argc){
dbesc(datetime_convert()),
intval($contact['id'])
);
- continue;
+ return;
}