]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_bank_package.php
New wrapper function introduced, more EL rewrites:
[mailer.git] / inc / modules / admin / what-list_bank_package.php
index 385b3c2d39b40abddfde41ca4723a85fe596c6f6..e388fc0ccc2dd01c594005194b5d3e7d3953984c 100644 (file)
@@ -87,16 +87,12 @@ ORDER BY
        `id` ASC", __FILE__, __LINE__);
 
 // Is there at lease one package?
-if (SQL_NUMROWS($result) > 0) {
+if (!SQL_HASZERONUMS($result)) {
        // List all packages
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
-               // Add color switch
-               $content['sw']     = $SW;
-
                // Load row template
                $OUT .= loadTemplate('admin_list_bank_package_row', true, $content);
-               $SW = 3 - $SW;
        } // END - while
 
        // Load main template