mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 19:07:01 +00:00
Merge pull request #19 from aelaraji/home_php
fix Undefined array key url in views/home.php
This commit is contained in:
commit
de78181cdc
1 changed files with 6 additions and 4 deletions
|
|
@ -24,10 +24,12 @@ $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']) ) {
|
||||
if (!isset($_SESSION['password']) && (isset($_GET['url']))) {
|
||||
if ($_GET['url'] != $config['public_txt_url']) {
|
||||
header('Location: ./profile');
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
include_once 'partials/header.php';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue