]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/register_functions.php
Missing properties added
[mailer.git] / inc / libs / register_functions.php
index 3e7d980cf3de366f3c809b6cf329ee874b16d497..91cd13f633bf84d9fcccb1ad0e6c92a44e84b17d 100644 (file)
@@ -49,7 +49,7 @@ function registerMustFillout () {
 
        while ($content = SQL_FETCHARRAY($result)) {
                $value = '';
-               if ($content['field_required'] == 'Y') $value = "<div class=\\\"guest_failed\\\">&nbsp;(*)</div>";
+               if ($content['field_required'] == 'Y') $value = "<span class=\\\"guest_failed\\\">&nbsp;(*)</span>";
                // @TODO Rewrite these constants
                $eval = "define('MUST_".strtoupper($content['field_name'])."', \"".$value."\");";
                eval($eval);
@@ -60,10 +60,10 @@ function registerMustFillout () {
 
        // Also fill other constants
        // @TODO Rewrite these constants, too
-       define('MUST_GENDER', "<div class=\"guest_failed\">&nbsp;(*)</div>");
-       define('MUST_ADDY'  , "<div class=\"guest_failed\">&nbsp;(*)</div>");
-       define('MUST_BIRTH' , "<div class=\"guest_failed\">&nbsp;(*)</div>");
-       define('MUST_MARKER', "<div class=\"guest_failed\">&nbsp;(*)</div>");
+       define('MUST_GENDER', "<span class=\"guest_failed\">&nbsp;(*)</span>");
+       define('MUST_ADDY'  , "<span class=\"guest_failed\">&nbsp;(*)</span>");
+       define('MUST_BIRTH' , "<span class=\"guest_failed\">&nbsp;(*)</span>");
+       define('MUST_MARKER', "<span class=\"guest_failed\">&nbsp;(*)</span>");
 }
 
 //
@@ -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)
@@ -133,7 +133,7 @@ function registerGenerateCategoryTable ($mode, $return=false) {
                        // Is the array element not set?
                        if (!REQUEST_ISSET_POST('cat', $content['id'])) {
                                // Then set it
-                               REQUEST_SET_POST(array('cat', $content['id']), '');
+                               REQUEST_SET_POST('cat', array($content['id'] => ''));
                        } // END - if
 
                        // Prepare array for the template