More fixes from bugtracker issues, thanks to profi-concept
[mailer.git] / inc / modules / admin / what-list_country.php
index 776b59948df438839d6a06e0080ee8f4ef698c4f..fb97e68a158013c079d17c4cae0b280c1e719003 100644 (file)
@@ -141,7 +141,7 @@ if ((isset($_POST['add'])) && (!empty($_POST['code'])) && (!empty($_POST['descr'
                $MSG = ADMIN_COUNTRIES_MODIFIED;
        } elseif ((isset($_POST['remove'])) && (!empty($_POST['id']))) {
                // Remove
-               $IDs = implode(", ", $_POST['id']);
+               $IDs = implode(",", array_keys($_POST['id']));
                $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_countries WHERE id IN (".$IDs.") LIMIT ".count($_POST['id'])."";
 
                // Create message