mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 19:07:01 +00:00
Fix notice when $textareaValue was undefined.
This commit is contained in:
parent
34286ed282
commit
e11b4b7277
1 changed files with 5 additions and 6 deletions
|
|
@ -24,7 +24,7 @@ if (!isset($_SESSION['password'])) {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
//$textareaValue = '';
|
$textareaValue = '';
|
||||||
if (isset($_GET['hash'])) {
|
if (isset($_GET['hash'])) {
|
||||||
$hash = $_GET['hash'];
|
$hash = $_GET['hash'];
|
||||||
$textareaValue = "(#$hash) ";
|
$textareaValue = "(#$hash) ";
|
||||||
|
|
@ -82,10 +82,9 @@ if (isset($_POST['submit'])) {
|
||||||
|
|
||||||
header('Refresh:0; url=.');
|
header('Refresh:0; url=.');
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
} else { ?>
|
|
||||||
|
|
||||||
<?php
|
} else {
|
||||||
|
|
||||||
require_once("partials/base.php");
|
require_once("partials/base.php");
|
||||||
|
|
||||||
$title = "New post - ".$title;
|
$title = "New post - ".$title;
|
||||||
|
|
@ -105,8 +104,8 @@ include_once 'partials/header.php';
|
||||||
</form>
|
</form>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<!-- PHP: GET TIMELIE --><?php include_once 'partials/timeline.php'?>
|
<!-- PHP: GET TIMELINE --><?php include_once 'partials/timeline.php' ?>
|
||||||
|
|
||||||
<!-- PHP: GET FOOTER --><?php include_once 'partials/footer.php';?>
|
<!-- PHP: GET FOOTER --><?php include_once 'partials/footer.php'; ?>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue