From a85e06239a680583f3bde40455d3c624da7dcd75 Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Mon, 17 Apr 2006 03:22:46 +0000 Subject: [PATCH] adding placeholder array size check back in. --- lib/WebGUI/Session/ErrorHandler.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {