From c019945e82f88b060be9eecbcd27d3e8665398a0 Mon Sep 17 00:00:00 2001 From: SiskelDev Date: Fri, 30 May 2025 00:42:36 +0200 Subject: [PATCH] added a value if nothing is set --- admin/insert.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/insert.php b/admin/insert.php index 1d3eced..5e3c4c6 100644 --- a/admin/insert.php +++ b/admin/insert.php @@ -390,6 +390,10 @@ if (isset($_POST["url"])) { // Join the names with a comma and update the result input resultInput.value = selectedNames.join(' '); + + if (resultInput.value == "" || resultInput.value == " ") { + resultInput.value = props; + } } // Add event listeners to all checkboxes