From: Matt S Trout Date: Mon, 25 Mar 2019 01:30:43 +0000 (+0000) Subject: arrayref logic can just use $self X-Git-Tag: v1.90_01~341 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=35315a6e0704d16e523702125f569d71fc7a2a36;p=dbsrgits%2FSQL-Abstract.git arrayref logic can just use $self --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 4667758..c2570bf 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -572,7 +572,7 @@ sub _expand_expr { return $self->_expand_expr_hashpair($key, $value, $logic); } if (ref($expr) eq 'ARRAY') { - my $logic = lc($logic || $self->{logic}); + my $logic = lc($self->{logic}); return $self->_expand_andor("-${logic}", $expr); } if (my $literal = is_literal_value($expr)) {