Skip to content

Commit e7a90c6

Browse files
author
root
committed
Fixes issue #4
1 parent cae094c commit e7a90c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Service/RecipeService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ public function checkRecipe($json) {
190190

191191
if(sizeof($instructions) > 0) {
192192
$json['recipeInstructions'] = $instructions;
193+
} else {
194+
$json['recipeInstructions'] = explode(PHP_EOL, $json['recipeInstructions']);
193195
}
194196
} else {
195197
$json['recipeInstructions'] = [];

0 commit comments

Comments
 (0)