leaked 1 from www_view shows up in Asset output

This commit is contained in:
Colin Kuskie 2006-03-13 17:12:14 +00:00
parent 0112793198
commit 97c1039e72
4 changed files with 4 additions and 2 deletions

View file

@ -168,7 +168,7 @@ sub page {
$output = tryAssetMethod($session,$asset,"view") unless ($output || ($method eq "view"));
}
}
if ($output eq "") {
if (defined($output) and $output eq "") {
$session->http->setStatus("404","Page Not Found");
my $notFound = WebGUI::Asset->getNotFound($session);
if (defined $notFound) {