Skip to content

Commit

Permalink
Fixes issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 28, 2019
1 parent cae094c commit e7a90c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Service/RecipeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ public function checkRecipe($json) {

if(sizeof($instructions) > 0) {
$json['recipeInstructions'] = $instructions;
} else {
$json['recipeInstructions'] = explode(PHP_EOL, $json['recipeInstructions']);
}
} else {
$json['recipeInstructions'] = [];
Expand Down

0 comments on commit e7a90c6

Please sign in to comment.