]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_country.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-list_country.php
index aab6faadd2bd72bbc3e1777f66da0c4d718d3add..93a5d73c87e94246efdec0fb8733bd25c16826d1 100644 (file)
@@ -48,7 +48,7 @@ if ((isFormSent('add')) && (isPostRequestElementSet('code')) && (isPostRequestEl
        // Check if country code does already exist
        $result = sqlQueryEscaped("SELECT `id` FROM `{?_MYSQL_PREFIX?}_countries` WHERE `code`='%s' LIMIT 1",
        array(strtoupper(postRequestElement('code'))), __FILE__, __LINE__);
-       if (ifSqlHasZeroNums($result)) {
+       if (ifSqlHasZeroNumRows($result)) {
                // Save entry
                sqlQueryEscaped("INSERT INTO `{?_MYSQL_PREFIX?}_countries` (`code`, `descr`, `is_active`) VALUES ('%s','%s','%s')",
                array(
@@ -177,7 +177,7 @@ LIMIT 1");
                __FILE__, __LINE__);
 
        // Are there entries?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // List all countries
                $OUT = '';
                while ($content = sqlFetchArray($result)) {