DB/Structure

* implemented changed from 309a7f7e2a (achievement reward mail localization)
This commit is contained in:
Sarjuuk
2017-05-04 20:56:55 +02:00
parent 7c456b970c
commit 4a8fe6de7d
6 changed files with 35 additions and 19 deletions

View File

@@ -530,7 +530,7 @@ class Loot
// achievement part
$conditions = array(['itemExtra', $this->entry]);
if ($ar = DB::World()->selectCol('SELECT entry FROM achievement_reward WHERE item = ?d{ OR mailTemplate IN (?a)}', $this->entry, $ids ?: DBSIMPLE_SKIP))
if ($ar = DB::World()->selectCol('SELECT ID FROM achievement_reward WHERE ItemID = ?d{ OR MailTemplateID IN (?a)}', $this->entry, $ids ?: DBSIMPLE_SKIP))
array_push($conditions, ['id', $ar], 'OR');
$srcObj = new AchievementList($conditions);