`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