replaced return; with return undef;
This commit is contained in:
parent
ffa90c5fbd
commit
fa09c41598
113 changed files with 287 additions and 286 deletions
|
|
@ -37,7 +37,7 @@ sub process {
|
|||
return "[AD:".$name."]";
|
||||
}
|
||||
my $adSpace = WebGUI::AdSpace->newByName($session, $name);
|
||||
return unless defined $adSpace;
|
||||
return undef unless defined $adSpace;
|
||||
return $adSpace->displayImpression;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ sub process {
|
|||
$output .= "AssetProxy:".Time::HiRes::tv_interval($t) if ($session->errorHandler->canShowPerformanceIndicators());
|
||||
return $output;
|
||||
}
|
||||
return;
|
||||
return undef;
|
||||
} else {
|
||||
my $i18n = WebGUI::International->new($session, 'Macro_AssetProxy');
|
||||
return $i18n->get('invalid url');
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ sub process {
|
|||
$randomAsset->prepareView;
|
||||
return $randomAsset->view;
|
||||
}
|
||||
return;
|
||||
return undef;
|
||||
} else {
|
||||
return $i18n->get('childless');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ sub process {
|
|||
if (my $image = WebGUI::Asset::File::Image->newByUrl($session,$url)) {
|
||||
return $image->getThumbnailUrl;
|
||||
} else {
|
||||
return;
|
||||
return undef;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue