Added tests to cover userStyle.

fixed a bug in userStyle where it would not process data that was false.
process will do this, so I made userStyle do it as well by adding
in a definedness check on $output.
This commit is contained in:
Colin Kuskie 2006-10-12 04:53:43 +00:00
parent 01a09cbea9
commit 514c2263fc
2 changed files with 60 additions and 6 deletions

View file

@ -423,7 +423,7 @@ sub userStyle {
my $self = shift;
my $output = shift;
$self->session->http->setCacheControl("none");
if ($output) {
if (defined $output) {
return $self->process($output,$self->session->setting->get("userFunctionStyleId"));
} else {
return undef;