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