]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_email.php
Generic function accepts eights (!) but optional parameter $callback, ext-network...
[mailer.git] / inc / modules / admin / what-config_email.php
index 88c10a2e395376bc1a0e8305130f96e500ae66e5..0ce3c74db965b7170007de3002941a8afa023668 100644 (file)
@@ -46,15 +46,15 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addMenuDescription('admin', __FILE__);
 
 // Remove empty array index
-if (!isPostRequestParameterSet(('max'))) unsetPostRequestParameter(('add_max'));
+if (!isPostRequestParameterSet('max')) unsetPostRequestParameter('add_max');
 
-if (isPostRequestParameterSet(('add_max'))) {
+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_HASZERONUMS($result)) {
                // Add this value (including comment)
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (value, comment) VALUES ('%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES ('%s','%s')",
                array(bigintval(postRequestParameter('max')), postRequestParameter('comment')),__FILE__, __LINE__);
                $content = '{--ADMIN_MAX_VALUE_SAVED--}';
        } else {
@@ -83,13 +83,13 @@ if (isPostRequestParameterSet(('add_max'))) {
                                        postRequestParameter('comm', $id),
                                        $id
                                ),__FILE__, __LINE__);
-                               $TEXT = '{--MRECEIVE_SAVED--}';
+                               $TEXT = '{--ADMIN_MAX_RECEIVE_SAVED--}';
                                break;
 
                        case 'del':
                                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1",
                                        array($id), __FILE__, __LINE__);
-                               $TEXT = '{--MRECEIVE_DELETED--}';
+                               $TEXT = '{--ADMIN_MAX_RECEIVE_DELETED--}';
                                break;
                }
        }