]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/register_functions.php
Code cosmetics applied
[mailer.git] / inc / libs / register_functions.php
index 8ed526a227bdc66e81344fd1b042fa6d70ae22c1..3e7d980cf3de366f3c809b6cf329ee874b16d497 100644 (file)
@@ -45,7 +45,7 @@ if (!defined('__SECURITY')) {
 //
 function registerMustFillout () {
        $result = SQL_QUERY("SELECT field_name, field_required FROM `{!_MYSQL_PREFIX!}_must_register` ORDER BY `id`",
-               __FUNCTION__, __LINE__);
+       __FUNCTION__, __LINE__);
 
        while ($content = SQL_FETCHARRAY($result)) {
                $value = '';
@@ -71,7 +71,7 @@ function REGISTER_CHECK_REQUIRED_FIELDS (&$array) {
        $ret = false;
        foreach ($array as $key => $value) {
                $result = SQL_QUERY("SELECT field_required FROM `{!_MYSQL_PREFIX!}_must_register` WHERE field_name='".$key."' LIMIT 1",
-                       __FUNCTION__, __LINE__);
+               __FUNCTION__, __LINE__);
                if (SQL_NUMROWS($result) == 1) {
                        // "Must-line" found
                        list($chk) = SQL_FETCHROW($result);
@@ -123,7 +123,7 @@ function registerGenerateCategoryTable ($mode, $return=false) {
 
        // Look for categories
        $result = SQL_QUERY("SELECT `id`, `cat`, `visible` FROM `{!_MYSQL_PREFIX!}_cats` ".$AND." ORDER BY `sort` ASC",
-               __FUNCTION__, __LINE__);
+       __FUNCTION__, __LINE__);
 
        if (SQL_NUMROWS($result) > 0) {
                // List alle visible modules (or all to the admin)
@@ -146,9 +146,9 @@ function registerGenerateCategoryTable ($mode, $return=false) {
                        );
 
                        if ((REQUEST_POST('cat', $content['id']) == 'Y') || ((getConfig('register_default') == 'Y') && (!REQUEST_ISSET_POST('cat', $content['id'])))) {
-                               $content['def_y'] = ' chkecked="checked"';
+                               $content['def_y'] = ' checked="checked"';
                        } else {
-                               $content['def_n'] = ' chkecked="checked"';
+                               $content['def_n'] = ' checked="checked"';
                        }
 
                        // Load template and switch color