More rewrites to make use of (cached) wrapper functions
[mailer.git] / inc / modules / member / what-order.php
index d6744299fa0bce45bf865432ebe5f3d682ee038c..281248a7950803e3705b67810bb60bb3807db954 100644 (file)
@@ -444,7 +444,7 @@ FROM
 ".$whereStatement."
 ORDER BY
        `sort` ASC", __FILE__, __LINE__);
-       if (SQL_NUMROWS($result_cats) > 0) {
+       if (!SQL_HASZERONUMS($result_cats)) {
                if ($total > 0) {
                        // Initialize array...
                        $categories = array(
@@ -534,7 +534,7 @@ LIMIT 1",
                        $result = SQL_QUERY("SELECT `id`, `price`, `payment`, `mail_title` FROM `{?_MYSQL_PREFIX?}_payments` ORDER BY `payment` ASC", __FILE__, __LINE__);
 
                        $types = array();
-                       if (SQL_NUMROWS($result) > 0) {
+                       if (!SQL_HASZERONUMS($result)) {
                                // Check for message id in URL
                                $message = getMessageFromErrorCode(getRequestParameter('code'));