fix for the "Undefined array key password" on timeline/following URI

This commit is contained in:
Adnan ELARAJI 2024-12-08 20:54:35 +01:00
parent 555baefcd0
commit 3b424a4bdd
No known key found for this signature in database

View file

@ -18,7 +18,7 @@ include 'partials/header.php';
<!-- <th></th> -->
<th>Nick</th>
<th>URL</th>
<?php if($_SESSION['password']=="$password") { ?>
<?php if(isset($_SESSION['password']) && $_SESSION['password']=="$password") { ?>
<th>Time ago</th>
<?php } ?>
</tr>
@ -33,7 +33,7 @@ include 'partials/header.php';
<!-- <a href="?remove_url=<?= $currentFollower[1] ?>">Remove</a> -->
<!-- <?php // } ?> -->
</td>
<?php if($_SESSION['password']=="$password") { ?>
<?php if(isset($_SESSION['password']) && $_SESSION['password']=="$password") { ?>
<td>
<?php
// Test first if URL is a valid feed:
@ -60,4 +60,4 @@ include 'partials/header.php';
</center>
<!-- FOOTER --><?php include 'partials/footer.php';?>
<!-- FOOTER --><?php include 'partials/footer.php';?>