summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmat2
1 files changed, 1 insertions, 1 deletions
diff --git a/mat b/mat
index 2a2bff7..5407621 100755
--- a/mat
+++ b/mat
@@ -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;