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

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