X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_country.php;h=f0c8457997e07000bdc9a28984c7df3e8decec84;hp=16ceaef0bf65e6661699f66f2fa29efe8a2b8f2f;hb=80e2def8ef2125fd4d7d1312ee3993ab613f0846;hpb=c7c0ba50148cc4d3f251b28c5c395f44974e1daf diff --git a/inc/modules/admin/what-list_country.php b/inc/modules/admin/what-list_country.php index 16ceaef0bf..f0c8457997 100644 --- a/inc/modules/admin/what-list_country.php +++ b/inc/modules/admin/what-list_country.php @@ -104,7 +104,7 @@ if ((isset($_POST['add'])) && (!empty($_POST['code'])) && (!empty($_POST['descr' // Edit all selected country codes $OUT = ""; $SW = 2; - foreach ($_POST['id'] as $id=>$status) + foreach ($_POST['id'] as $id => $status) { // Load data from DB $result = SQL_QUERY_ESC("SELECT code, descr FROM "._MYSQL_PREFIX."_countries WHERE id=%s LIMIT 1", @@ -154,7 +154,7 @@ if ((isset($_POST['add'])) && (!empty($_POST['code'])) && (!empty($_POST['descr' if ((isset($_POST['modify'])) && (!empty($_POST['id']))) { // Modify - foreach ($_POST['id'] as $id=>$sel) + foreach ($_POST['id'] as $id => $sel) { $SQLs[] = "UPDATE "._MYSQL_PREFIX."_countries SET code='".$_POST['code'][$id]."', descr='".$_POST['descr'][$id]."', is_active='".$_POST['is_active'][$id]."' WHERE id='".$id."' LIMIT 1"; }