]> git.mxchange.org Git - friendica.git/commitdiff
doco
authorMike Macgirvin <mike@macgirvin.com>
Fri, 10 Sep 2010 00:25:08 +0000 (17:25 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Fri, 10 Sep 2010 00:25:08 +0000 (17:25 -0700)
mod/dfrn_poll.php

index a20135f814840346624c8f9be3ed164acda47130..89fc379fb5f429df80922adb2d4fc5690793e265 100644 (file)
@@ -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');