From: Michael Date: Mon, 28 Aug 2017 04:46:04 +0000 (+0000) Subject: Bugfix: You cannot be local and remote at the same time X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=21d27c2124996e1eaa35541cc5092c651c1375b7;p=friendica.git Bugfix: You cannot be local and remote at the same time --- 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']); }