lotsoflittlestuff
This commit is contained in:
parent
ba8da761e6
commit
466267fbb5
14 changed files with 99 additions and 45 deletions
|
|
@ -126,8 +126,17 @@ function profile_content(&$a) {
|
|||
|
||||
// Profile owner - everything is visible
|
||||
|
||||
if(local_user() && ($_SESSION['uid'] == $a->profile['profile_uid']))
|
||||
if(local_user() && ($_SESSION['uid'] == $a->profile['profile_uid'])) {
|
||||
$sql_extra = '';
|
||||
|
||||
// Oh - while we're here... reset the Unseen messages
|
||||
|
||||
$r = q("UPDATE `item` SET `unseen` = 0
|
||||
WHERE `type` != 'remote' AND `unseen` = 1 AND `uid` = %d",
|
||||
intval($_SESSION['uid'])
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
// authenticated visitor - here lie dragons
|
||||
elseif(remote_user()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue