New (template) wrapper function fixEmptyContentToDashes() introduced, EL rewrites:
[mailer.git] / inc / modules / admin / what-config_rewrite.php
index f5218da01094fd1320f8b5c07e072101ff5e2a85..c684f07bc3c6b2179cf9dd9150184748453b7730 100644 (file)
@@ -64,12 +64,9 @@ if (isFormSent()) {
        adminSaveSettingsFromPostData();
 } else {
        // Load existing modules and generate TR rows for the template
-       $result = SQL_QUERY("SELECT module, title FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY module", __FILE__, __LINE__);
+       $result = SQL_QUERY("SELECT `module`, `title` FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY module", __FILE__, __LINE__);
        $OUT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result)) {
-               // Set title to three dashes when no title is supplied
-               if (empty($content['title'])) $content['title'] = '---';
-
                // Already registered module?
                if (isInString($content['module'], getConfig('rewrite_skip'))) {
                        // Found