]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-categories.php
Missing SVN properties set
[mailer.git] / inc / modules / member / what-categories.php
index c6674511b9ebb259c71f5de9deac71333594a4ef..74e03ce2fbe8dab21a228a3d77848fd5a765c9aa 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/19/2003 *
- * ===============                              Last change: 06/30/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 10/19/2003 *
+ * ===================                          Last change: 06/30/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-categories.php                              *
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 // Add description as navigation point
 addMenuDescription('member', __FILE__);
 
-$UID = getUserId();
+$UID = getMemberId();
 $whereStatement = " WHERE `visible`='Y'";
 if (isAdmin()) $whereStatement = '';
 
@@ -56,7 +56,7 @@ $cats = SQL_NUMROWS($result);
 if ($cats > 0) {
        $LEAST = false;
        if (isFormSent()) {
-               $cnt = 0;
+               $cnt = '0';
                foreach (postRequestElement('cat') as $cat => $joined) {
                        if ($joined != 'Y') $cnt++;
                } // END - foreach
@@ -70,7 +70,7 @@ if ($cats > 0) {
        // Is the form sent?
        if (isFormSent()) {
                // Start counting all
-               $cnt = 0;
+               $cnt = '0';
 
                // Go through all entries
                foreach (postRequestElement('cat') as $cat => $joined) {
@@ -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($UID, bigintval($cat)), __FILE__, __LINE__);
 
-                                       if (SQL_NUMROWS($result_user) == 0) {
+                                       if (SQL_NUMROWS($result_user) == '0') {
                                                $sql = "INSERT INTO `{?_MYSQL_PREFIX?}_user_cats` (userid, cat_id) VALUES ('%s','%s')";
                                        } // END - if