diff options
author | cos <cos> | 2015-12-06 22:39:32 +0100 |
---|---|---|
committer | cos <cos> | 2016-07-17 20:10:58 +0200 |
commit | f9131183fcf95f8ffefa513df7014df61fc9147d (patch) | |
tree | a9e30a7b0867c18d93daba2378ef9e5b8153ffcb | |
parent | ae8c9242c9dc0155a6e1c5ab9e0cf6bdc726e430 (diff) | |
download | mat-f9131183fcf95f8ffefa513df7014df61fc9147d.zip |
Invalid servings count should still count.
-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; |