Permalink
Browse files

show the main nick in the aliases table as should be

  • Loading branch information...
1 parent 4ac8f9e commit 087ed15fe7d9bf9740fe6ad72ac1fea5c73fae8d @tommyrot committed Nov 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 html.php
View
@@ -579,7 +579,7 @@ public function make_html($mysqli)
'v1' => 'int',
'v2' => 'string'));
$t->set_value('queries', array(
- 'main' => 'select count(*) as `v1`, `csnick` as `v2` from `user_details` join `user_status` on `user_details`.`uid` = `user_status`.`uid` where `status` != 3 group by `ruid` having `v1` > 1 order by `v1` desc, `v2` asc limit '.$this->maxrows,
+ 'main' => 'select `v1`, `csnick` as `v2` from (select `ruid`, count(*) as `v1` from `user_status` group by `ruid` having `v1` > 1) as `t` join `user_details` on `t`.`ruid` = `user_details`.`uid` join `user_status` on `t`.`ruid` = `user_status`.`uid` where `status` = 1 order by `v1` desc limit '.$this->maxrows,
'total' => 'select count(*) as `total` from `user_status`'));
$output .= $t->make_table($this->mysqli);

0 comments on commit 087ed15

Please sign in to comment.