]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_cats.php
Login procedure rewritten to filters (internal TODO)
[mailer.git] / inc / modules / admin / what-config_cats.php
index b6f0dddbfe69d7cc4222aa196d76534e247d8b2c..e9008fb4e8647de4d7a6e29776cb6e51c19ac308 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/10/2003 *
- * ===============                              Last change: 07/04/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 10/10/2003 *
+ * ===================                          Last change: 07/04/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-config_cats.php                             *
@@ -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?