aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-09 22:15:19 -0700
committerFriendika <info@friendika.com>2011-05-09 22:15:19 -0700
commita5e0190f23a9b3ee840e98f9a819d688f6326781 (patch)
tree0eea536b129a3e001797e57f782f980694264a50 /include/auth.php
parentcb6c1f91b7b2b30c3d9e9f4e6c97b0704361a1f3 (diff)
downloadvolse-hubzilla-a5e0190f23a9b3ee840e98f9a819d688f6326781.tar.gz
volse-hubzilla-a5e0190f23a9b3ee840e98f9a819d688f6326781.tar.bz2
volse-hubzilla-a5e0190f23a9b3ee840e98f9a819d688f6326781.zip
missing self photo on remote site comment boxes
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/auth.php b/include/auth.php
index 4c7e85d86..ec02cd85c 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -28,6 +28,15 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
goaway($a->get_baseurl());
}
+ if(x($_SESSION['visitor_id']) && (! x($_SESSION['uid']))) {
+ $r = q("SELECT * FROM `contact` WHERE `id` = %d LIMIT 1",
+ intval($_SESSION['visitor_id'])
+ );
+ if(count($r)) {
+ $a->contact = $r[0];
+ }
+ }
+
if(x($_SESSION,'uid')) {
// already logged in user returning