From e7a90c6e3018b7e8be993c6e4134462c0398c41c Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 May 2019 12:11:10 +0200 Subject: [PATCH] Fixes issue #4 --- lib/Service/RecipeService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Service/RecipeService.php b/lib/Service/RecipeService.php index 3ea21b4e6..421df0fb6 100644 --- a/lib/Service/RecipeService.php +++ b/lib/Service/RecipeService.php @@ -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'] = [];