From 11997db83d0f4818764f36f2903a67cbe44b5233 Mon Sep 17 00:00:00 2001 From: Shadez Date: Sun, 13 Feb 2011 17:11:06 +0800 Subject: [PATCH] [476] Typo in Characters::HasTalent() --- includes/classes/class.characters.php | 4 ++-- includes/revision_nr.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/classes/class.characters.php b/includes/classes/class.characters.php index 508531cee..451d458f0 100644 --- a/includes/classes/class.characters.php +++ b/includes/classes/class.characters.php @@ -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 * @@ -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']), diff --git a/includes/revision_nr.php b/includes/revision_nr.php index 73095404f..dc8c00c0d 100644 --- a/includes/revision_nr.php +++ b/includes/revision_nr.php @@ -1,5 +1,5 @@ \ No newline at end of file