From: Joey Schulze Date: Sun, 17 Feb 2008 08:26:22 +0000 (+0000) Subject: Check for uninitialised variable X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fservice.infodrom.org;a=commitdiff_plain;h=722da605ae07c7a4a45176a86df9d49b0bf0a05f Check for uninitialised variable --- diff --git a/src/InfoCon/buch/infocon b/src/InfoCon/buch/infocon index 26f6faa..35b9d8e 100755 --- a/src/InfoCon/buch/infocon +++ b/src/InfoCon/buch/infocon @@ -120,7 +120,7 @@ sub sales_list my $sth; my $d; - if ($where !~ /visible/ && (!$opt_all || $opt_all == 0)) { + if ($where && $where !~ /visible/ && (!$opt_all || $opt_all == 0)) { if ($where) { $where .= " AND visible = 1"; } else {