]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
remote_user is replaced
[friendica.git] / boot.php
index 3aca931492d2ac6f373ae82e55117c4086491327..6aada42cbef6a9399f124ecf553091634eb4e17e 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -414,15 +414,13 @@ function public_contact()
  *
  * @return int|bool visitor_id or false
  */
-function remote_user($uid = null)
+function remote_user()
 {
        if (empty($_SESSION['authenticated'])) {
                return false;
        }
 
-       if (!is_null($uid)) {
-               return Session::getRemoteContactID($uid);
-       } elseif (is_null($uid) && !empty($_SESSION['visitor_id'])) {
+       if (!empty($_SESSION['visitor_id'])) {
                return intval($_SESSION['visitor_id']);
        }