diff --git a/lib/WebGUI/Session/ErrorHandler.pm b/lib/WebGUI/Session/ErrorHandler.pm index 052b129e6..122aa03f4 100644 --- a/lib/WebGUI/Session/ErrorHandler.pm +++ b/lib/WebGUI/Session/ErrorHandler.pm @@ -339,7 +339,13 @@ sub query { my $query = shift; my $placeholders = shift; $self->{_queryCount}++; - my $plac = scalar(@{$placeholders}) ? "\n  with placeholders:  ['".join("', '",@{$placeholders})."']" : ''; + my $plac; + if (defined $placeholders and ref $placeholders eq "ARRAY") { + $plac = "\n  with placeholders:  ['".join("', '",@{$placeholders})."']"; + } + else { + $plac = ''; + } $self->debug("query ".$self->{_queryCount}.': '.$query.$plac); }