Make the edit button edit the current page by default

This commit is contained in:
Jacob 2024-02-04 02:34:43 +01:00
parent df9384598a
commit cbf28ac578

View file

@ -375,7 +375,8 @@ function printHeader($html, $printpage) {
}
if (isset($_SESSION['type']) && $_SESSION['type'] == 2) {
$html .= "\t\t\t\t<a id='edit' href=\"/edit.php\">Edit</a>\n";
$pid = $i + 1;
$html .= "\t\t\t\t<a id='edit' href=\"/edit.php?id=$pid\">Edit</a>\n";
}
if (!isset($_SESSION['type'])) {