From 27b3124f777ced65cba602a368c57a3f809e50b8 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 5 Sep 2025 12:57:19 -0400 Subject: [PATCH] Update .gitignore to ignore the new custom/* --- .gitignore | 1 + admin/post/vendor_template.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1dc7ee4b..f60657bd 100644 --- a/.gitignore +++ b/.gitignore @@ -25,5 +25,6 @@ plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS/* xcustom/* !xcustom/readme.php post/xcustom +custom/* !post/xcustom/readme.php .zed diff --git a/admin/post/vendor_template.php b/admin/post/vendor_template.php index 747ee42a..09dfab16 100644 --- a/admin/post/vendor_template.php +++ b/admin/post/vendor_template.php @@ -52,7 +52,7 @@ if (isset($_POST['edit_vendor_template'])) { $code = sanitizeInput($_POST['code']); $notes = sanitizeInput($_POST['notes']); - if ($_POST['global_update_vendor_name'] == 1) { + if ($_POST['global_update_vendor_name'] == 1 ?? 0) { $sql_global_update_vendor_name = ", vendor_name = '$name'"; } else { $sql_global_update_vendor_name = "";