Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / modules / admin / what-config_cats.php
index 7be072178694a89c42b1b827332c90ad064c9798..bdbb540774a59947803ce536e28d22a6e10fe246 100644 (file)
@@ -52,7 +52,7 @@ if (isPostRequestElementSet('add')) {
        // Add a new category
        $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_cats` WHERE cat='%s' LIMIT 1",
        array(postRequestElement('catname')), __FILE__, __LINE__);
-       if (SQL_NUMROWS($result) == 0) {
+       if (SQL_NUMROWS($result) == '0') {
                // Category does not exists, we simply add it...
                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_cats` (cat, visible, sort) VALUES ('%s','%s','%s')",
                array(postRequestElement('catname'), postRequestElement('visible'), bigintval(postRequestElement('parent') + 1)), __FILE__, __LINE__);