aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-09 17:25:08 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-09 17:25:08 -0700
commita587d550b9ddf83e3469674da47911c59419b14d (patch)
tree56e5d12cc4032ef1468e298bb97f5df7b9f7d090 /mod
parent440a3fea3fd6f9b759da06886708d42a3f2a2553 (diff)
downloadvolse-hubzilla-a587d550b9ddf83e3469674da47911c59419b14d.tar.gz
volse-hubzilla-a587d550b9ddf83e3469674da47911c59419b14d.tar.bz2
volse-hubzilla-a587d550b9ddf83e3469674da47911c59419b14d.zip
doco
Diffstat (limited to 'mod')
-rw-r--r--mod/dfrn_poll.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php
index a20135f81..89fc379fb 100644
--- a/mod/dfrn_poll.php
+++ b/mod/dfrn_poll.php
@@ -34,7 +34,13 @@ function dfrn_poll_init(&$a) {
if(count($r)) {
foreach($r as $rr) {
- if(local_user() && ($rr['uid'] == get_uid()))
+
+ // On a multi-user site, the query above *may* have returned two results.
+ // One of those could be the logged-in user who is now visiting "this" cell,
+ // as both share the dfrn_id. We will skip that entry if it unfortunately
+ // happens to come up first.
+
+ if(local_user() && ($rr['uid'] == get_uid()))
continue;
$s = fetch_url($rr['poll'] . '?dfrn_id=' . $dfrn_id . '&type=profile-check');