diff options
Diffstat (limited to 'include/auth.php')
-rw-r--r-- | include/auth.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/auth.php b/include/auth.php index 387cab0af..ef5c6f0b4 100644 --- a/include/auth.php +++ b/include/auth.php @@ -26,6 +26,7 @@ if((x($_SESSION,'authenticated')) && (! ($_POST['auth-params'] == 'login'))) { $r = q("SELECT * FROM `contact` WHERE `uid` = %s AND `self` = 1 LIMIT 1", intval($_SESSION['uid'])); if(count($r)) { + $a->contact = $r[0]; $a->cid = $r[0]['id']; $_SESSION['cid'] = $a->cid; } |