From: Joey Schulze Date: Sun, 8 Sep 2019 19:25:59 +0000 (+0200) Subject: Prevent warning X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fservice.infodrom.org;a=commitdiff_plain;h=67cd78c297f28d413ecdd6d05827b7c35d023dfa;ds=sidebyside Prevent warning --- 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"; }