X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=ed558e5feb44bfa1da8f429d95610f6f42abf8e7;hb=0360f7197aac062eb2fecf95969658ca56068deb;hp=c0290dff4dc9b992dbe0eb58d09f0efd118166f0;hpb=1c7f4e3c6331f8ad7b1987f33a17074908ad41eb;p=friendica.git diff --git a/index.php b/index.php index c0290dff4d..ed558e5feb 100644 --- a/index.php +++ b/index.php @@ -128,7 +128,7 @@ if ((x($_GET,'zrl')) && $a->mode == App::MODE_NORMAL) { // Valid profile links contain a path with "/profile/" and no query parameters if ((parse_url($_GET['zrl'], PHP_URL_QUERY) == "") && strstr(parse_url($_GET['zrl'], PHP_URL_PATH), "/profile/")) { - if ($_SESSION["visitor_home"] != $_GET["zrl"]) { + if (defaults($_SESSION, "visitor_home", "") != $_GET["zrl"]) { $_SESSION['my_url'] = $_GET['zrl']; $_SESSION['authenticated'] = 0; } @@ -147,7 +147,7 @@ if ((x($_GET,'zrl')) && $a->mode == App::MODE_NORMAL) { if ((x($_GET,'owt')) && $a->mode == App::MODE_NORMAL) { $token = $_GET['owt']; $a->query_string = Profile::stripQueryParam($a->query_string, 'owt'); - Profile::owtInit($token); + Profile::openWebAuthInit($token); } /**