]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_country.php
Entire rewrite of mail part in app! Not kidding here...
[mailer.git] / inc / modules / admin / what-list_country.php
index 4ff4155f4255a6534c5d02624d48175848a324dd..5b227d84ce893aa7defa5e7460467be24e2e7ed5 100644 (file)
@@ -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)
        {
                // 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
  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
                                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
                                {
                                }
                                 else
                                {