Skip to content

Commit

Permalink
[470] Correct table name in Characters::HasTalent()
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadez committed Feb 5, 2011
1 parent 092be07 commit 15c4310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions includes/classes/class.characters.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @package World of Warcraft Armory
* @version Release 4.50
* @revision 464
* @revision 470
* @copyright (c) 2009-2011 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
Expand Down Expand Up @@ -3043,7 +3043,7 @@ public function HasTalent($talent_id, $active_spec = true, $rank = -1) {
);
break;
case SERVER_TRINITY:
$talent_spells = Armory::$aDB->selectRow("SELECT `Rank_1`, `Rank_3`, `Rank_4`, `Rank_4`, `Rank_5` FROM `ARMORYDBPREFIX_talent` WHERE `TalentID` = %d LIMIT 1", $talent_id);
$talent_spells = Armory::$aDB->selectRow("SELECT `Rank_1`, `Rank_3`, `Rank_4`, `Rank_4`, `Rank_5` FROM `ARMORYDBPREFIX_talents` WHERE `TalentID` = %d LIMIT 1", $talent_id);
if(!$talent_spells || ($rank >= 0 && !isset($talent_spells['Rank_' . $rank + 1]))) {
Armory::Log()->writeError('%s : talent ranks for talent %d was not found in DB!', __METHOD__, $talent_id);
return false;
Expand Down
2 changes: 1 addition & 1 deletion includes/revision_nr.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
define('ARMORY_REVISION', 469);
define('ARMORY_REVISION', 470);
define('DB_VERSION', 'armory_r467');
define('CONFIG_VERSION', '2001201101');
?>

0 comments on commit 15c4310

Please sign in to comment.