]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/register_functions.php
Major cleanup of old-school HTML-mess...
[mailer.git] / inc / libs / register_functions.php
index 06abee9cc591d449d2158390371e27ab97b4bf7d..e1e4ab8ae071ca5eec7958b8765a32eb07a913e8 100644 (file)
@@ -87,7 +87,7 @@ function registerGenerateCategoryTable ($mode, $return=false) {
        if (SQL_NUMROWS($result) > 0) {
                // List alle visible modules (or all to the admin)
                $SW = 2;
-               $OUT .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n";
+               $OUT .= '<table border="0" cellspacing="0" cellpadding="0" width="100%">';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare array for the template
                        $content = array(
@@ -109,7 +109,7 @@ function registerGenerateCategoryTable ($mode, $return=false) {
                        $OUT .= loadTemplate('guest_cat_row', true, $content);
                        $SW = 3 - $SW;
                }
-               $OUT .= "</table>\n";
+               $OUT .= '</table>';
 
                // Free memory
                SQL_FREERESULT($result);
@@ -146,7 +146,7 @@ function FILTER_REGISTER_MUST_FILLOUT ($content) {
        while ($row = SQL_FETCHARRAY($result)) {
                // Must the user fill out this element?
                $value = '';
-               if ($row['field_required'] == 'Y') $value = "<span class=\\\"guest_failed\\\">&nbsp;(*)</span>";
+               if ($row['field_required'] == 'Y') $value = '<span class="guest_failed">(*)</span>';
 
                // Add it
                $content['must_fillout_'.strtolower($row['field_name']).''] = $value;