]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_country.php
Introduced new wrapper functions to make the code more readable, new extension ext...
[mailer.git] / inc / modules / admin / what-list_country.php
index 13f412d21236616031c567a2d7edbb293941a45e..3026a3fb245399138b47bb8649d678eeb93796a8 100644 (file)
@@ -50,7 +50,7 @@ if ((isPostRequestParameterSet('add')) && (isPostRequestParameterSet(('code')))
        // Check if country code does already exist
        $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_countries` WHERE code='%s' LIMIT 1",
        array(strtoupper(postRequestParameter('code'))), __FILE__, __LINE__);
-       if (SQL_NUMROWS($result) == '0') {
+       if (SQL_HASZERONUMS($result)) {
                // Save entry
                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_countries` (code, descr, is_active) VALUES ('%s','%s','%s')",
                array(