}
function show_highest_ranked_projects() {
- $result = getMostActiveStats ('week', 0) ;
+ $statsobj = new Stats () ;
+ $result = $statsobj->getMostActiveStats ('week', 0) ;
if (!$result || db_numrows($result) < 1) {
return _('No Stats Available')." ".db_error();
} else {
$return = '<table summary="">';
$count = 0 ;
- while ($row=db_fetch_array($result) && $count < 20) {
+ while (($row=db_fetch_array($result)) && ($count < 20)) {
$t_prj_activity = number_format(substr($row['ranking'],0,5),0);
$t_prj_link = util_make_link_g ($row['unix_group_name'],$row['group_id'],$row['group_name']);