]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_email_max_rec.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-list_email_max_rec.php
index b4989fa00fd3d070248d198781bf0cda1a890218..676ce93bba8c249ca5c768395d6ee670172f852d 100644 (file)
@@ -52,7 +52,7 @@ if (isPostRequestElementSet('add_max')) {
        // Save all settings
        $result = sqlQueryEscaped("SELECT `id` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE value='%s' LIMIT 1",
        array(bigintval(postRequestElement('max'))), __FILE__, __LINE__);
-       if (ifSqlHasZeroNums($result)) {
+       if (ifSqlHasZeroNumRows($result)) {
                // Add this value (including comment)
                sqlQueryEscaped("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES ('%s','%s')",
                array(bigintval(postRequestElement('max')), postRequestElement('comment')),__FILE__, __LINE__);
@@ -134,7 +134,7 @@ if (isPostRequestElementSet('add_max')) {
 } else {
        $result = sqlQuery("SELECT `id`, `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` ORDER BY `value` ASC",
        __FILE__, __LINE__);
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // List already existing entries for editing
                $OUT = '';
                while ($content = sqlFetchArray($result)) {