Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Commit

Permalink
Fix for resolving guild ingredients in recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
queicherius committed Jan 31, 2016
1 parent 01ef63c commit 5bd42aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Api/Recipes.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function getOfficialRecipe($recipe)

$json = $this->json('https://api.guildwars2.com/v2/recipes/' . $recipe);

if ($json['guild_ingredients']) {
if (isset($json['guild_ingredients'])) {
foreach ($json['guild_ingredients'] as $guild_ingredient) {
array_push($json['ingredients'], [
'item_id' => $this->resolveGuildIngredient($guild_ingredient['upgrade_id']),
Expand Down

0 comments on commit 5bd42aa

Please sign in to comment.