Skip to content

Commit

Permalink
[458] DifficultyEntry check in Characters::GetCharacterFeed().
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadez committed Jan 19, 2011
1 parent 19f846a commit 2727206
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion 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 456
* @revision 458
* @copyright (c) 2009-2011 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
Expand Down Expand Up @@ -2704,6 +2704,9 @@ public function GetCharacterFeed($full = false) {
// Get criterias
$achievement_ids = array();
$dungeonDifficulty = $event['difficulty'];
if($dungeonDifficulty == -1) {
$dungeonDifficulty = 0;
}
// Search for difficulty_entry_X
$DifficultyEntry = Armory::$wDB->selectCell("SELECT `entry` FROM `creature_template` WHERE `difficulty_entry_%d` = %d", $event['difficulty'], $event_data);
if(!$DifficultyEntry || $DifficultyEntry == 0) {
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', 457);
define('ARMORY_REVISION', 458);
define('DB_VERSION', 'armory_r456');
define('CONFIG_VERSION', '1801201101');
?>

0 comments on commit 2727206

Please sign in to comment.