fixed a bug in SQL::quote

fixed the logging bug
This commit is contained in:
JT Smith 2005-12-04 23:40:55 +00:00
parent e26b7c9808
commit 9722bad470
3 changed files with 14 additions and 4 deletions

View file

@ -608,7 +608,7 @@ The database handler. Defaults to the WebGUI database handler.
sub quote {
my $value = shift;
return "''" unless $value;
return "''" unless defined $value;
my $dbh = shift || _getDefaultDb();
return $dbh->quote($value);
}