]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_user.php
Complete rewrite and debug message surpressed:
[mailer.git] / inc / modules / admin / what-list_user.php
index c21ac0a8fc6e59048cb8601bf7d13c48e1230052..a0143e28a06c820d230a694c4240fc994bb8c862 100644 (file)
@@ -42,7 +42,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        require($INC);
 } elseif ((!EXT_IS_ACTIVE('user')) || (GET_EXT_VERSION('user') == '')) {
        // Missing extension!
-       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'user'));
+       addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('user'));
        return;
 }
 
@@ -106,15 +106,15 @@ if (REQUEST_ISSET_GET('uid')) {
 FROM `{!_MYSQL_PREFIX!}_user_data`
 WHERE userid=%s
 LIMIT 1",
-               array($uid), __FILE__, __LINE__);
+       array($uid), __FILE__, __LINE__);
        if (SQL_NUMROWS($result_user) == 1) {
                // Account found!
                $DATA  = SQL_FETCHARRAY($result_user);
 
                // Get count/sum of refs, selected categories, unconfirmed mails
                $REFS  = GET_TOTAL_DATA($uid, "refsystem", "counter");
-               $CATS  = GET_TOTAL_DATA($uid, "user_cats", "id", 'userid', true);
-               $LINKS = GET_TOTAL_DATA($uid, "user_links", "id", 'userid', true);
+               $CATS  = GET_TOTAL_DATA($uid, "user_cats", 'id', 'userid', true);
+               $LINKS = GET_TOTAL_DATA($uid, "user_links", 'id', 'userid', true);
 
                // Add links to the numbers
                if ($LINKS > 0) $LINKS = $base."&amp;what=list_links&amp;uid=".$uid."\">".$LINKS."</a>]";
@@ -159,7 +159,7 @@ LIMIT 1",
                // Nickname inclusion?
                // @TODO Rewrite these to filters
                if (EXT_IS_ACTIVE('nickname')) {
-                       // Nickname not set or invalid? Then 
+                       // Nickname not set or invalid? Then
                        if ((empty($DATA['nickname'])) || ($DATA['nickname'] == $uid)) $DATA['nickname'] = '---';
                } else {
                        // Extension not found
@@ -298,7 +298,7 @@ LIMIT 1",
                        if ($content['refid'] > 0) $content['refid'] = generateUserProfileLink($content['refid']);
 
                        // Get number of unconfirmed mails
-                       $LINKS = GET_TOTAL_DATA($content['userid'], "user_links", "id", 'userid', true);
+                       $LINKS = GET_TOTAL_DATA($content['userid'], "user_links", 'id', 'userid', true);
                        if ($LINKS > 0) $LINKS = $base."&amp;what=list_links&amp;uid=".$content['userid']."\">".translateComma($LINKS)."</a>]";
 
                        // Set link to sent mails if present