X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-del_transfer.php;h=3b578c409cbc7446a8d2548c34a47cbbcf37060e;hb=98b92ea5ba992a63304091fa1b57f477befffc22;hp=b4fc851c70dac809360f927c6bb7ce7ed263f60f;hpb=76fd13e5938a334f08e43893eb9a4ff49f72bf07;p=mailer.git diff --git a/inc/modules/admin/what-del_transfer.php b/inc/modules/admin/what-del_transfer.php index b4fc851c70..3b578c409c 100644 --- a/inc/modules/admin/what-del_transfer.php +++ b/inc/modules/admin/what-del_transfer.php @@ -47,7 +47,7 @@ addMenuDescription('admin', __FILE__); if (isFormSent('del')) { // Delete entries from tables - if (countPostSelection() > 0) { + if (ifPostContainsSelections()) { // Init SQLs initSqls(); @@ -73,12 +73,11 @@ ORDER BY `trans_id` ASC', __FILE__, __LINE__); $total = '0'; -if (SQL_NUMROWS($result) > 0) { +if (!SQL_HASZERONUMS($result)) { // Output rows - $OUT = ''; $SW = 2; + $OUT = ''; while ($content = SQL_FETCHARRAY($result)) { // Prepare data for the row template - $content['sw'] = $SW; $content['time_trans'] = generateDateTime($content['time_trans'], 3); // Load row template @@ -86,7 +85,6 @@ if (SQL_NUMROWS($result) > 0) { // Sum points and switch colors $total += $content['points']; - $SW = 3 - $SW; } // END - while // Free memory @@ -95,7 +93,7 @@ if (SQL_NUMROWS($result) > 0) { // Nothing for in and out $OUT = ' - ' . loadTemplate('admin_settings_saved', true, getMessage('TRANSFER_NO_INOUT_TRANSFERS')) . ' + ' . loadTemplate('admin_settings_saved', true, '{--TRANSFER_NO_INOUT_TRANSFERS--}') . ' '; } @@ -107,7 +105,7 @@ $content['rows'] = $OUT; $content['total'] = translateComma($total); // Set title -$content['title'] = getMessage('TRANSFER_LIST_ALL'); +$content['title'] = '{--TRANSFER_LIST_ALL--}'; // Show delete button here $content['delete'] = '