remove WebGUI::Utility::isIn

This commit is contained in:
Graham Knop 2010-09-07 12:33:15 -05:00
parent 0e754a51e4
commit 6aa26c2e44
61 changed files with 126 additions and 148 deletions

View file

@ -151,7 +151,7 @@ sub getCategories {
my $bindvars = [];
foreach my $key (keys %{$options}) {
next unless WebGUI::Utility::isIn($key,qw(editable visible));
next unless $key ~~ [qw(editable visible)];
$whereClause .= " and" unless ($whereClause eq "");
$whereClause .= " $key=?";
push(@{$bindvars},$options->{$key});
@ -214,7 +214,7 @@ sub getFields {
foreach my $key (keys %{$options}) {
#Skip bad stuff that will crash the query
next unless WebGUI::Utility::isIn($key,qw(editable visible required));
next unless $key ~~ [qw(editable visible required)];
$whereClause .= " and $key=?";
push(@{$bindvars},$options->{$key});
}