mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Better error handling for undefined/non-existent asset IDs
This commit is contained in:
@@ -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='tickets.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='assets.php'><i class='fa fa-fw fa-arrow-left'></i> Go Back</a></center>";
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user