]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: You cannot be local and remote at the same time
authorMichael <heluecht@pirati.ca>
Mon, 28 Aug 2017 04:46:04 +0000 (04:46 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 28 Aug 2017 04:46:04 +0000 (04:46 +0000)
boot.php

index ac6cbc95508c5bc236848eca8693a376d1ad5ba8..c3ad39cd5750c80ff81d3a1fb90540daaf9595ae 100644 (file)
--- 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']);
        }