diff options
author | friendica <info@friendica.com> | 2012-09-04 04:28:38 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-09-04 04:28:38 -0700 |
commit | cf9a6454b090d986a96d05bc4a16ab3db5b0e03b (patch) | |
tree | 100c78117d37ae560043813e96c9e0a7ad172f9d /include | |
parent | 9c875a8ab58ff6da12bb34e141b92eb4d1c6c847 (diff) | |
download | volse-hubzilla-cf9a6454b090d986a96d05bc4a16ab3db5b0e03b.tar.gz volse-hubzilla-cf9a6454b090d986a96d05bc4a16ab3db5b0e03b.tar.bz2 volse-hubzilla-cf9a6454b090d986a96d05bc4a16ab3db5b0e03b.zip |
bring back "this is you" comment photo
Diffstat (limited to 'include')
-rw-r--r-- | include/security.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/security.php b/include/security.php index 4141d0948..497166ec4 100644 --- a/include/security.php +++ b/include/security.php @@ -40,9 +40,18 @@ function authenticate_success($user_record, $login_initial = false, $interactive $_SESSION['theme'] = $a->identity['entity_theme']; date_default_timezone_set($a->identity['entity_timezone']); } - - } + $r = q("SELECT * FROM contact WHERE uid = %d AND self = 1 LIMIT 1", + intval($a->identity['entity_id']) + ); + + if($r && count($r)) { + $a->contact = $r[0]; + $a->cid = $r[0]['id']; + $_SESSION['cid'] = $a->cid; + } + + } } else { |