From 299329e4e886742fcdc0f35e6dd66a817c8f7398 Mon Sep 17 00:00:00 2001 From: noyu Date: Fri, 4 Mar 2011 16:04:15 +0800 Subject: [PATCH] [486] Correct SQL field in Items::GetItemData(); --- includes/classes/class.items.php | 8 ++++---- includes/revision_nr.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/classes/class.items.php b/includes/classes/class.items.php index e3f7a4f01..c90ba3bbd 100644 --- a/includes/classes/class.items.php +++ b/includes/classes/class.items.php @@ -3,7 +3,7 @@ /** * @package World of Warcraft Armory * @version Release 4.50 - * @revision 477 + * @revision 486 * @copyright (c) 2009-2011 Shadez * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @@ -1289,9 +1289,9 @@ public function GetItemData($itemID) { Armory::$wDB->SkipNextError(); $itemData = Armory::$wDB->selectRow("SELECT `name`, `Quality`, `ItemLevel`, `displayid`, `SellPrice`, `BuyPrice`, `Flags2`, `RequiredDisenchantSkill` FROM `item_template` WHERE `entry`=%d LIMIT 1", $itemID); if(!$itemData) { - $itemData = Armory::$wDB->selectRow("SELECT `name`, `Quality`, `ItemLevel`, `displayid`, `SellPrice`, `BuyPrice`, `FlagsExtra`, `RequiredDisenchantSkill` FROM `item_template` WHERE `entry`=%d LIMIT 1", $itemID); - $itemData['Flags2'] = $itemData['FlagsExtra']; // For compatibility - unset($itemData['FlagsExtra']); + $itemData = Armory::$wDB->selectRow("SELECT `name`, `Quality`, `ItemLevel`, `displayid`, `SellPrice`, `BuyPrice`, `ExtraFlags`, `RequiredDisenchantSkill` FROM `item_template` WHERE `entry`=%d LIMIT 1", $itemID); + $itemData['Flags2'] = $itemData['ExtraFlags']; // For compatibility + unset($itemData['ExtraFlags']); } return $itemData; } diff --git a/includes/revision_nr.php b/includes/revision_nr.php index 6315ce389..af4f06c8d 100644 --- a/includes/revision_nr.php +++ b/includes/revision_nr.php @@ -1,5 +1,5 @@ \ No newline at end of file