]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_network_types.php
A lot naming conventions applied, TODOs.txt updated
[mailer.git] / inc / modules / admin / what-list_network_types.php
index c5a01a4b2998a8526e54c31c60e83b2594f52abe..3f2b02ec7659a45af42bd576a0b252aeb41848ce 100644 (file)
@@ -83,12 +83,11 @@ ORDER BY
                array(getRequestParameter('network')), __FILE__, __LINE__);
 
        // Do we have entries?
-       if (SQL_NUMROWS($result) > 0) {
+       if (!SQL_HASZERONUMS($result)) {
                // List all entries
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($row = SQL_FETCHARRAY($result)) {
                        // Add/translate some data
-                       $row['sw'] = $SW;
                        $row['network_type_banner_url'] = fixNullEmptyToDashes($row['network_type_banner_url'], 3);
 
                        // Set disabled entry
@@ -96,7 +95,6 @@ ORDER BY
 
                        // Add row template and switch color
                        $OUT .= loadTemplate('admin_list_network_types_row', true, $row);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Prepare data for template