More rewrites to make use of (cached) wrapper functions
[mailer.git] / inc / modules / admin / what-edit_emails.php
index 6cc821b374689f48dab4cbb83fa58c4e984b5ea3..0ecb55d49f33e57da838fea16c15ea682e461899 100644 (file)
@@ -58,7 +58,7 @@ ORDER BY
        `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",