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 = "";