From 67cd78c297f28d413ecdd6d05827b7c35d023dfa Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Sun, 8 Sep 2019 21:25:59 +0200 Subject: [PATCH] Prevent warning --- src/InfoCon/buch/infocon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/InfoCon/buch/infocon b/src/InfoCon/buch/infocon index 931fdc7..8fe4c52 100755 --- a/src/InfoCon/buch/infocon +++ b/src/InfoCon/buch/infocon @@ -200,7 +200,7 @@ sub sales_list $where .= sprintf("description ILIKE '%%%s%%'", $opt_grep); } - if ($where !~ /visible/) { + if (defined $where && $where !~ /visible/) { $where .= " AND " if $where; $where .= "visible = 1"; } -- 2.20.1