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,9 +24,11 @@ $title = "Timeline for ".$title;
// Redirect guests to Profile view, if url not set til home twtxt.txt
if (!isset($_SESSION['password']) && ($_GET['url'] != $config['public_txt_url']) ) {
header('Location: ./profile');
exit();
if (!isset($_SESSION['password']) && (isset($_GET['url']))) {
if ($_GET['url'] != $config['public_txt_url']) {
header('Location: ./profile');
exit();
}
}
include_once 'partials/header.php';
@ -43,4 +45,4 @@ if (isset($_SESSION['password'])) {
include_once 'partials/timeline.php';
include_once 'partials/footer.php';
include_once 'partials/footer.php';