diff --git a/includes/classes/class.items.php b/includes/classes/class.items.php index c90ba3bbd..734a1605b 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 486 + * @revision 487 * @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`, `ExtraFlags`, `RequiredDisenchantSkill` FROM `item_template` WHERE `entry`=%d LIMIT 1", $itemID); - $itemData['Flags2'] = $itemData['ExtraFlags']; // For compatibility - unset($itemData['ExtraFlags']); + $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']); } return $itemData; } diff --git a/includes/revision_nr.php b/includes/revision_nr.php index af4f06c8d..adf70b6f7 100644 --- a/includes/revision_nr.php +++ b/includes/revision_nr.php @@ -1,5 +1,5 @@ \ No newline at end of file