X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-del_transfer.php;h=3b578c409cbc7446a8d2548c34a47cbbcf37060e;hb=ad6b1626cb65625166344063a3bb849029bed920;hp=bd575c1f0c5f952d265d162fb9a337802f9d3bcf;hpb=04b69ac9f33369cbf654396c4a42cb1fff710ff4;p=mailer.git diff --git a/inc/modules/admin/what-del_transfer.php b/inc/modules/admin/what-del_transfer.php index bd575c1f0c..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 @@ -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'] = '