X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_imprint.php;h=806689398703f8598188bf54d4a0357d9d786913;hb=61621983cc6d7195fcc7eab29b5f6080ff283b34;hp=52bbd62b517eea530bf0daa1c3f62f218f4192d1;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;p=mailer.git diff --git a/inc/modules/admin/what-config_imprint.php b/inc/modules/admin/what-config_imprint.php index 52bbd62b51..8066893987 100644 --- a/inc/modules/admin/what-config_imprint.php +++ b/inc/modules/admin/what-config_imprint.php @@ -1,7 +1,7 @@ 0) { + // Are there entries? + if (!ifSqlHasZeroNumRows($result)) { // Load all entries - $OUT = ''; $SW = 2; - while ($content = SQL_FETCHARRAY($result)) { - // Add more data - $content['sw'] = $SW; - + $OUT = ''; + while ($content = sqlFetchArray($result)) { // Load row template - $OUT .= loadTemplate('admin_list_imprint_row', true, $content); - - // Switch color - $SW = 3 - $SW; + $OUT .= loadTemplate('admin_list_imprint_row', TRUE, $content); } // END - while // Transfer all rows to $content $content = $OUT; } else { - // None found! - $content = loadTemplate('admin_list_imprint_row_none', true); + // None found + $content = loadTemplate('admin_list_imprint_row_none', TRUE); } // Load template - loadTemplate('admin_list_imprint', false, $content); + loadTemplate('admin_list_imprint', FALSE, $content); } // [EOF]