`timestamp` ASC", __FILE__, __LINE__);
// Entries found?
-if (SQL_NUMROWS($result) > 0) {
+if (!SQL_HASZERONUMS($result)) {
if (isFormSent()) {
// Make mail editable...
$result = SQL_QUERY_ESC("SELECT `id`, `subject`, `text`, `url` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s LIMIT 1",
loadTemplate('admin_settings_saved', false, $content);
} else {
// There are mail orders available
- $OUT = ''; $SW = 2;
+ $OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
- // Add color swapping
- $content['sw'] = $SW;
-
// Load row template and switch colors
$OUT .= loadTemplate('admin_edit_email_row', true, $content);
- $SW = 3 - $SW;
} // END - while
// Free memory