]> git.mxchange.org Git - friendica.git/blobdiff - index.php
Several more warnings ... (#5340)
[friendica.git] / index.php
index f65867feb6c9cf876e7b1930949b54130552c9da..ed558e5feb44bfa1da8f429d95610f6f42abf8e7 100644 (file)
--- 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;
                        }