X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fservice.infodrom.org;a=blobdiff_plain;f=src%2FInfoCon%2Fbuch%2Finfocon;h=c10413b7a5fb262a77af79b92d00570aa6e322be;hp=843b3782961696fdcb0b2ce2a751ba940ae55332;hb=65cb3d52b45296e9a5f6a5d06fdb5d7f4d99d749;hpb=b044b9cda3fec6c5f94d38f30df6811266c59879 diff --git a/src/InfoCon/buch/infocon b/src/InfoCon/buch/infocon index 843b378..c10413b 100755 --- a/src/InfoCon/buch/infocon +++ b/src/InfoCon/buch/infocon @@ -168,7 +168,7 @@ sub sales_list $where .= sprintf("year = %d", $opt_year); } - if (defined $data{category}) { + if (defined $data{category} && length $data{category}) { $where .= " AND " if $where; $where .= sprintf("category = %s", $dbh->quote($data{category})); } @@ -623,11 +623,7 @@ if (defined $data{mailto}) { } if (defined $data{category}) { - if (length($data{category})) { - sales_list("category = '".$data{category}."'"); - } else { - sales_list; - } + sales_list; exit; } elsif (defined $data{'list-categories'}) { list_categories;