diff options
-rwxr-xr-x | mat | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -910,7 +910,7 @@ sub cmd_shoppinglist { my $servings_col = $db->selectcol_arrayref("SELECT servings FROM recipes WHERE id=".$recipe.";"); my $servings; - if(defined(@$servings_col[0])) { + if(defined(@$servings_col[0]) && (@$servings_col[0]) gt 0) { $servings = @$servings_col[0]; } else { $servings = 1; |