Skip to content

Commit

Permalink
updated some rankings bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DracoLi committed Dec 28, 2012
1 parent 4cef199 commit 67f68f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file modified SC2Database.sqlite
Binary file not shown.
6 changes: 5 additions & 1 deletion classes/SC2Rankings.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ protected function appendOneRanksPage($targetURL, $rankingsArray, $isFirst)

$contents = $urlconnect->getContent();
$rawRankings = str_get_html($contents)->find('.tblrow');


// Get the provided region
foreach ( $rawRankings as $oneRanking )
Expand All @@ -386,6 +385,11 @@ protected function appendOneRanksPage($targetURL, $rankingsArray, $isFirst)
// Create a new player
$onePlayer = array();

// This to handle some display errors that happened on SC2Ranks
if (!$playerNode->find('img', 0)) {
continue;
}

// Get race
$onePlayer['race'] = strtolower($playerNode->find('img', 0)->getAttribute('class'));

Expand Down

0 comments on commit 67f68f5

Please sign in to comment.