Skip to content

Commit

Permalink
[476] Typo in Characters::HasTalent()
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadez committed Feb 13, 2011
1 parent 5992681 commit 11997db
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 475
* @revision 476
* @copyright (c) 2009-2011 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
Expand Down Expand Up @@ -3067,7 +3067,7 @@ public function HasTalent($talent_id, $active_spec = true, $rank = -1) {
$sql_data = array(
'activeSpec' => array(
sprintf('SELECT `spell` FROM `character_talent` WHERE `spell` IN (%s) AND `guid`=%%d AND `spec`=%%d', $talent_spells['Rank_1'] . ', ' . $talent_spells['Rank_2'] . ', ' . $talent_spells['Rank_3'] . ', ' . $talent_spells['Rank_4'] . ', ' . $talent_spells['Rank_5']),
sprintf('SELECT 1 FROM `character_talent` WHERE `spell`=%d AND `guid`=%%d AND `spec`=%%d'. $talent_spells['Rank_' . $rank + 1])
sprintf('SELECT 1 FROM `character_talent` WHERE `spell`=%d AND `guid`=%%d AND `spec`=%%d', $talent_spells['Rank_' . $rank + 1])
),
'spec' => array(
sprintf('SELECT `spell` FROM `character_talent` WHERE `spell` IN (%s) AND `guid`=%%d', $talent_spells['Rank_1'] . ', ' . $talent_spells['Rank_2'] . ', ' . $talent_spells['Rank_3'] . ', ' . $talent_spells['Rank_4'] . ', ' . $talent_spells['Rank_5']),
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', 475);
define('ARMORY_REVISION', 476);
define('DB_VERSION', 'armory_r471');
define('CONFIG_VERSION', '2001201101');
?>

3 comments on commit 11997db

@maximgeerinck
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not working i just updated this and now the error is
Notice: Undefined offset: 1 in /home/ace/public_html/armory/includes/classes/class.characters.php on line 3071



Notice: Undefined offset: 1 in /home/ace/public_html/armory/includes/classes/class.characters.php on line 3075

@Shadez
Copy link
Owner Author

@Shadez Shadez commented on 11997db Feb 13, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I am compiling Trinity Core server right now to see what exactly fails. Will be fixed as far as possible.

@Shadez
Copy link
Owner Author

@Shadez Shadez commented on 11997db Feb 13, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in [477]

Please sign in to comment.