mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
remote_user is replaced
This commit is contained in:
parent
6e9026e033
commit
1c26baec46
11 changed files with 40 additions and 53 deletions
6
boot.php
6
boot.php
|
@ -414,15 +414,13 @@ function public_contact()
|
|||
*
|
||||
* @return int|bool visitor_id or false
|
||||
*/
|
||||
function remote_user($uid = null)
|
||||
function remote_user()
|
||||
{
|
||||
if (empty($_SESSION['authenticated'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!is_null($uid)) {
|
||||
return Session::getRemoteContactID($uid);
|
||||
} elseif (is_null($uid) && !empty($_SESSION['visitor_id'])) {
|
||||
if (!empty($_SESSION['visitor_id'])) {
|
||||
return intval($_SESSION['visitor_id']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue