]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_holiday.php
New (template) wrapper function fixEmptyContentToDashes() introduced, EL rewrites:
[mailer.git] / inc / modules / admin / what-list_holiday.php
index d23b431eb17f23fd06ae34973a31f6d0db8e34c4..414c89f6b09e26c5d4fbc0c4ab8695b4332bb0ae 100644 (file)
@@ -61,9 +61,6 @@ if (SQL_NUMROWS($result) > 0) {
        // List all holiday requests
        $OUT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result)) {
-               // Add three dashes to comment when it is empty
-               if (empty($content['comments'])) $content['comments'] = '---';
-
                // Prepare data for the row template
                $content = array(
                        'sw'          => $SW,
@@ -88,7 +85,7 @@ if (SQL_NUMROWS($result) > 0) {
        loadTemplate('admin_list_holiday', false, $OUT);
 } else {
        // No holiday requests found
-       loadTemplate('admin_settings_saved', false, '{--HOLIDAY_ADMIN_NOTHING_FOUND--}');
+       loadTemplate('admin_settings_saved', false, '{--ADMIN_HOLIDAY_NOTHING_FOUND--}');
 }
 
 // [EOF]