fix Undefined array key url in views/home.php

This commit is contained in:
Adnan ELARAJI 2024-12-08 16:10:13 +01:00
parent 1316fcf6d9
commit 148a66a1c3
No known key found for this signature in database

View file

@ -24,10 +24,12 @@ $title = "Timeline for ".$title;
// Redirect guests to Profile view, if url not set til home twtxt.txt // Redirect guests to Profile view, if url not set til home twtxt.txt
if (!isset($_SESSION['password']) && ($_GET['url'] != $config['public_txt_url']) ) { if (!isset($_SESSION['password']) && (isset($_GET['url']))) {
if ($_GET['url'] != $config['public_txt_url']) {
header('Location: ./profile'); header('Location: ./profile');
exit(); exit();
} }
}
include_once 'partials/header.php'; include_once 'partials/header.php';