From 21d27c2124996e1eaa35541cc5092c651c1375b7 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 28 Aug 2017 04:46:04 +0000 Subject: [PATCH] Bugfix: You cannot be local and remote at the same time --- boot.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boot.php b/boot.php index ac6cbc9550..c3ad39cd57 100644 --- a/boot.php +++ b/boot.php @@ -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']); }