projects
/
dbsrgits/SQL-Abstract.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix warning on thing => [ undef, ... ]
[dbsrgits/SQL-Abstract.git]
/
lib
/
SQL
/
Abstract.pm
diff --git
a/lib/SQL/Abstract.pm
b/lib/SQL/Abstract.pm
index
3439e37
..
30b3ffc
100644
(file)
--- a/
lib/SQL/Abstract.pm
+++ b/
lib/SQL/Abstract.pm
@@
-1049,7
+1049,7
@@
sub _expand_hashpair_ident {
return $self->sqlfalse unless @$v;
$self->_debug("ARRAY($k) means distribute over elements");
my $logic = lc(
- $v->[0] =~ /^-(and|or)$/i
+ ($v->[0]||'') =~ /^-(and|or)$/i
? (shift(@{$v = [ @$v ]}), $1)
: lc($self->{logic} || 'OR')
);