$session->asset is not defined if we're running from a Content Handler or the like. make reporting it conditional so that we don't get error output from our error output.
This commit is contained in:
parent
fbb143116e
commit
690d87a668
1 changed files with 1 additions and 1 deletions
|
|
@ -689,7 +689,7 @@ sub process {
|
||||||
elsif ($self->state =~ /^clipboard/) {
|
elsif ($self->state =~ /^clipboard/) {
|
||||||
my $i18n = WebGUI::International->new($session, 'Asset_Template');
|
my $i18n = WebGUI::International->new($session, 'Asset_Template');
|
||||||
$session->log->warn('process called on template in clipboard: '.$self->getId
|
$session->log->warn('process called on template in clipboard: '.$self->getId
|
||||||
.'. The template was called through this url: '.$session->asset->url);
|
.'. The template was called through this url: ' . $session->asset ? $session->asset->url : '(none)' );
|
||||||
return $session->isAdminOn ? $i18n->get('template in clipboard') : '';
|
return $session->isAdminOn ? $i18n->get('template in clipboard') : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue