mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 10:57:01 +00:00
fix Undefined array key url in views/home.php
This commit is contained in:
parent
1316fcf6d9
commit
148a66a1c3
1 changed files with 6 additions and 4 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue