replaced return; with return undef;

This commit is contained in:
JT Smith 2008-01-24 21:58:15 +00:00
parent ffa90c5fbd
commit fa09c41598
113 changed files with 287 additions and 286 deletions

View file

@ -206,7 +206,7 @@ sub tryAssetMethod {
my $asset = shift;
my $method = shift;
my $state = $asset->get("state");
return if ($state ne "published" && $state ne "archived" && !$session->var->isAdminOn); # can't interact with an asset if it's not published
return undef if ($state ne "published" && $state ne "archived" && !$session->var->isAdminOn); # can't interact with an asset if it's not published
$session->asset($asset);
my $methodToTry = "www_".$method;
my $output = eval{$asset->$methodToTry()};

View file

@ -56,7 +56,7 @@ sub handler {
close($FILE);
return $output;
}
return;
return undef;
}

View file

@ -52,7 +52,7 @@ sub handler {
$http->sendHeader;
return "none";
}
return;
return undef;
}
1;

View file

@ -112,7 +112,7 @@ The current WebGUI::Session object.
sub handler {
my $session = shift;
unless ($session->setting->get("specialState") eq "init") {
return;
return undef;
}
$session->http->setCacheControl("none");
my $i18n = WebGUI::International->new($session, "WebGUI");
@ -489,7 +489,7 @@ a:visited { color: '.$form->get("visitedLinkColor").'; }
# remove init state
$session->setting->remove('specialState');
$session->http->setRedirect($session->url->gateway("?setup=complete"));
return;
return undef;
}
else {
$legend = "Admin Acccount";