From 223cf4a3283a308e0c9292ec47c72d8021b1685e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 5 Nov 2009 17:59:12 +0000 Subject: [PATCH] Fix for user list in rallye --- inc/modules/admin/what-list_rallyes.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/inc/modules/admin/what-list_rallyes.php b/inc/modules/admin/what-list_rallyes.php index 9469dcc38f..b6fdb930c6 100644 --- a/inc/modules/admin/what-list_rallyes.php +++ b/inc/modules/admin/what-list_rallyes.php @@ -250,23 +250,17 @@ LIMIT 1", $br = ''; // Output row - if (($row['curr_points'] > 0) && ($cnt > 0)) { $bl = ""; $br = ""; } - if (($row['refs'] > 0) || ($cnt > 0)) { - // Insert link to referal list - //* DEBUG: */ outputHtml('-'.$row['userid'].'/'.$cnt.'/'.$row['refs']."-
"); - $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 = ''; $br = ''; } // 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']}
"); // 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'], -- 2.30.2