]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-del_transfer.php
A lot naming conventions applied, TODOs.txt updated
[mailer.git] / inc / modules / admin / what-del_transfer.php
index c48e0f3dc2713feeb19a0362a7433c4783fd25e7..3b578c409cbc7446a8d2548c34a47cbbcf37060e 100644 (file)
@@ -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