remote_user is replaced

This commit is contained in:
Michael 2019-09-28 09:59:08 +00:00
parent 6e9026e033
commit 1c26baec46
11 changed files with 40 additions and 53 deletions

View file

@ -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']);
}