Bugfix: You cannot be local and remote at the same time

This commit is contained in:
Michael 2017-08-28 04:46:04 +00:00
parent ccb54f3ee4
commit 21d27c2124
1 changed files with 4 additions and 0 deletions

View File

@ -947,6 +947,10 @@ function public_contact() {
* @return int|bool visitor_id or false
*/
function remote_user() {
// You cannot be both local and remote
if (local_user()) {
return false;
}
if ((x($_SESSION, 'authenticated')) && (x($_SESSION, 'visitor_id'))) {
return intval($_SESSION['visitor_id']);
}