Fix notice when $textareaValue was undefined.

This commit is contained in:
eapl.mx 2023-11-23 12:13:10 -06:00
parent 34286ed282
commit e11b4b7277

View file

@ -24,7 +24,7 @@ if (!isset($_SESSION['password'])) {
exit();
}
//$textareaValue = '';
$textareaValue = '';
if (isset($_GET['hash'])) {
$hash = $_GET['hash'];
$textareaValue = "(#$hash) ";
@ -83,9 +83,8 @@ if (isset($_POST['submit'])) {
header('Refresh:0; url=.');
exit;
} else { ?>
} else {
<?php
require_once("partials/base.php");
$title = "New post - ".$title;
@ -105,7 +104,7 @@ include_once 'partials/header.php';
</form>
</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'; ?>