]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
New wrapper function introduced, more EL rewrites:
[mailer.git] / inc / mysql-manager.php
index 910f6a551360e8c2d021bb3062e53d10177a66c6..cc8988e1f91742c7a6f294f1d3b558bff94f1169 100644 (file)
@@ -1514,7 +1514,6 @@ LIMIT 1",
 
        // Add reason and translate points
        $data['text']   = $reason;
-       $data['points'] = translateComma($data['points']);
 
        // Now a mail to the user and that's all...
        $message = loadEmailTemplate('del-user', $data, $userid);
@@ -1830,7 +1829,7 @@ ORDER BY
                // Fetch all entries
                while ($row = SQL_FETCHARRAY($result)) {
                        // Get total points of this user
-                       $row['points'] = countSumTotalData($row['refid'], 'user_points', 'points') - countSumTotalData($row['refid'], 'user_data', 'used_points');
+                       $row['points'] = getTotalPoints($row['refid']);
 
                        // Get unconfirmed mails
                        $row['unconfirmed']  = countSumTotalData($row['refid'], 'user_links', 'id', 'userid', true);