commit 36fe991fa1c7944b538b95577dfbde6d27fc79ed
parent 0bc03176406d6671148ff239e3dbc60ea973bd18
Author: René Wagner <rwagner@rw-net.de>
Date: Fri, 28 Aug 2020 21:37:38 +0200
fix uninitialized when not filtering
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/phosta.pl b/phosta.pl
@@ -177,7 +177,7 @@ sub get_filters
}
return @returnarray;
}
- return undef;
+ return;
}
sub get_sql
@@ -233,6 +233,7 @@ sub get_sql
foreach (get_filters())
{
+
push @wherearray, @{$_}[0] . (@{$_}[1] =~ /!/ ? ' NOT' : '') . " LIKE '%@{$_}[2]%'";
}