Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / modules / admin / what-config_cats.php
index b6f0dddbfe69d7cc4222aa196d76534e247d8b2c..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__);
@@ -71,7 +71,7 @@ if (isPostRequestElementSet('add')) {
        // Change or delete categories...
        $TEXT = '';
        foreach (postRequestElement('id') as $id => $cat) {
-               // Secure ID
+               // Secure id
                $id = bigintval($id);
 
                // Is the entry set?