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

Commit

Permalink
More random bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
queicherius committed Feb 1, 2016
1 parent 5bd42aa commit 9d2eb52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Api/Recipes.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ public function getNested($id, $amount = 1, $nesting = 0)
throw new \Exception('Maximum nesting reached, something is going wrong.');
}

if ($id === null) {
return false;
}

// Get the official recipe from the API
$recipe = $this->getRecipe($id);

Expand Down

0 comments on commit 9d2eb52

Please sign in to comment.