Fix non existent record in contact details, document details, document template, ticket template also add limit 1

This commit is contained in:
johnnyq
2025-11-02 13:32:44 -05:00
parent a85f898ef5
commit 7ea39eb545
5 changed files with 32 additions and 6 deletions

View File

@@ -13,9 +13,9 @@ if (isset($_GET['project_template_id'])) {
);
if (mysqli_num_rows($sql_project_templates) == 0) {
echo "<center><h1 class='text-secondary mt-5'>Nothing to see here</h1><a class='btn btn-lg btn-secondary mt-3' href='admin_project_template.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>";
include_once "footer.php";
require_once "../includes/footer.php";
exit;
}