]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-categories.php
Introduced new wrapper functions to make the code more readable, new extension ext...
[mailer.git] / inc / modules / member / what-categories.php
index a870b6ab1c2153dff60811241d4a44df759cd20c..86263f07e8c26a7856f574434f11be56c51f8fdd 100644 (file)
@@ -83,7 +83,7 @@ if ($cats > 0) {
                                        $result_user = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid`=%s AND `cat_id`=%s LIMIT 1",
                                                array(getMemberId(), bigintval($cat)), __FILE__, __LINE__);
 
-                                       if (SQL_NUMROWS($result_user) == '0') {
+                                       if (!SQL_HASZERONUMS($result_user)) {
                                                $sql = "INSERT INTO `{?_MYSQL_PREFIX?}_user_cats` (userid, cat_id) VALUES ('%s','%s')";
                                        } // END - if