Fix for user list in rallye
[mailer.git] / inc / modules / admin / what-list_rallyes.php
index 1ddccd1cac9dd9c42f6a889a211099d6085e49ca..b6fdb930c6d3f44067df2d92d2d9d603fa0f0221 100644 (file)
@@ -250,23 +250,17 @@ LIMIT 1",
                        $br = '';
 
                        // Output row
-                       if (($row['curr_points'] > 0) && ($cnt > 0)) { $bl = "<strong>"; $br = "</strong>"; }
-                       if (($row['refs'] > 0) || ($cnt > 0)) {
-                               // Insert link to referal list
-                               //* DEBUG: */ outputHtml('-'.$row['userid'].'/'.$cnt.'/'.$row['refs']."-<br />");
-                               $cnt = generateUserProfileLink($row['userid'], $cnt, 'list_refs');
-                               $row['refs'] = generateUserProfileLink($row['userid'], $row['refs'], 'list_refs');
-                       } // END - if
+                       if (($row['curr_points'] > 0) && ($cnt > 0)) { $bl = '<strong>'; $br = '</strong>'; }
 
                        // Get user points
                        $points = countSumTotalData($row['userid'], 'user_points', 'points', 'userid', false, " AND `ref_depth`=1 LIMIT 1");
                        //* DEBUG: */ outputHtml(basename(__FILE__).":userid={$row['userid']},points={$points},opoints={$row['curr_points']}<br />");
 
                        // Prepare content
-                       // @TODO Rewritings: userid->userid,opoints->curr_points,old->refs in template
+                       // @TODO Rewritings: opoints->curr_points,old->refs in template
                        $row = array(
                                'sw'      => $SW ,
-                               'userid'     => $row['userid'],
+                               'userid'  => $row['userid'],
                                'bold_l'  => $bl ,
                                'bold_r'  => $br ,
                                'old'     => $row['refs'],
@@ -327,7 +321,7 @@ ORDER BY
                        $row = array(
                                'select'     => "<input type=\"checkbox\" name=\"sel[".$data['id']."]\" class=\"admin_normal\" value=\"1\" />",
                                'admin_id'   => $data['admin_id'],
-                               'email_link' => generateEmailLink($data['admin_id']),
+                               'admin_link' => generateAdminLink($data['admin_id']),
                                'login'      => $data['login'],
                                'id'         => $data['id'],
                                'sw'         => $SW,