Better error handling for undefined/non-existent asset IDs

This commit is contained in:
wrongecho 2025-11-02 17:17:37 +00:00
parent 9f48e2d9f0
commit 3917e66fd8
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ if (isset($_GET['asset_id'])) {
");
if (mysqli_num_rows($sql) == 0) {
echo "<center><h1 class='text-secondary mt-5'>Nothing to see here</h1><a class='btn btn-lg btn-secondary mt-3' href='assets.php'><i class='fa fa-fw fa-arrow-left'></i> Go Back</a></center>";
echo "<center><h1 class='text-secondary mt-5'>Nothing to see here</h1><a class='btn btn-lg btn-secondary mt-3' href='javascript:history.back()'><i class='fa fa-fw fa-arrow-left'></i> Go Back</a></center>";
} else {