]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_cats.php
Introduced new wrapper functions to make the code more readable, new extension ext...
[mailer.git] / inc / modules / admin / what-config_cats.php
index 2d1e5051d41d8b3f3aa5d51433e26ccbf2abdd0a..691f063d763ee122cc218139cb86678ce9d691ea 100644 (file)
@@ -53,7 +53,7 @@ if (isPostRequestParameterSet('add')) {
        // Add a new category
        $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_cats` WHERE `cat`='%s' LIMIT 1",
                array(postRequestParameter('catname')), __FILE__, __LINE__);
-       if (SQL_NUMROWS($result) == '0') {
+       if (SQL_HASZERONUMS($result)) {
                // Category does not exists, we simply add it...
                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('%s','%s','%s')",
                        array(