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