]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_email.php
Introduced new wrapper functions to make the code more readable, new extension ext...
[mailer.git] / inc / modules / admin / what-config_email.php
index 8f571d60118c54ae8f4c1bf967fa6bc349aa49ba..8d45685920d25a00026d85a9d7878b632a7a0196 100644 (file)
@@ -52,7 +52,7 @@ if (isPostRequestParameterSet(('add_max'))) {
        // Save all settings
        $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE value='%s' LIMIT 1",
        array(bigintval(postRequestParameter('max'))), __FILE__, __LINE__);
-       if (SQL_NUMROWS($result) == '0') {
+       if (SQL_HASZERONUMS($result)) {
                // Add this value (including comment)
                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (value, comment) VALUES ('%s','%s')",
                array(bigintval(postRequestParameter('max')), postRequestParameter('comment')),__FILE__, __LINE__);