X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_country.php;h=5b227d84ce893aa7defa5e7460467be24e2e7ed5;hp=4ff4155f4255a6534c5d02624d48175848a324dd;hb=143e78d4231adddd9e706cbf55ec5dd8c1651890;hpb=411ea6e81113b2c51f7e9ecad02d232db1732d86 diff --git a/inc/modules/admin/what-list_country.php b/inc/modules/admin/what-list_country.php index 4ff4155f42..5b227d84ce 100644 --- a/inc/modules/admin/what-list_country.php +++ b/inc/modules/admin/what-list_country.php @@ -50,7 +50,7 @@ if ((isset($_POST['add'])) && (!empty($_POST['code'])) && (!empty($_POST['descr' { // Save entry $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_countries (code, descr, is_active) - VALUES('%s', '%s', '%s')", + VALUES('%s','%s','%s')", array(strtoupper(substr($_POST['code'], 0, 2)), $_POST['descr'], $_POST['is_active']), __FILE__, __LINE__); // Country added @@ -124,7 +124,7 @@ if ((isset($_POST['add'])) && (!empty($_POST['code'])) && (!empty($_POST['descr' if ($post == "modify") { // Generate default selection in edit-mode - $content['status'] = ADD_OPTION_LINES("/ARRAY/", array('Y', 'N'), array(YES, NO ), $status); + $content['status'] = ADD_OPTION_LINES("/ARRAY/", array("Y","N"), array(YES, NO ), $status); } else {