Skip to content

Commit

Permalink
Added excluded players to gens ranking (issue #33)
Browse files Browse the repository at this point in the history
Fixes issue #33
  • Loading branch information
lautaroangelico committed May 6, 2019
1 parent 1636937 commit dac9069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/class.rankings.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ private function _rankingsExcludeChars() {
private function _generateGensRankingData($influence=1) {
$this->mu = Connection::Database('MuOnline');

$result = $this->mu->query_fetch("SELECT * FROM "._TBL_GENS_." WHERE "._CLMN_GENS_TYPE_." = ? ORDER BY "._CLMN_GENS_POINT_." DESC", array($influence));
$result = $this->mu->query_fetch("SELECT * FROM "._TBL_GENS_." WHERE "._CLMN_GENS_TYPE_." = ? AND "._CLMN_GENS_NAME_." NOT IN(".$this->_rankingsExcludeChars().") ORDER BY "._CLMN_GENS_POINT_." DESC", array($influence));
if(!is_array($result)) return;

$Character = new Character();
Expand Down

0 comments on commit dac9069

Please sign in to comment.