summaryrefslogtreecommitdiff
path: root/httemplate/autohandler
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-05-23 08:15:17 -0700
committerIvan Kohler <ivan@freeside.biz>2017-05-23 08:15:17 -0700
commitfca522dde5a5edfc3eb78d4c58a7e6519decb5de (patch)
tree4a5bfa39fd3fe7c2caedf87bc106aae9c849a441 /httemplate/autohandler
parent7a96e9d189ef7e5c0f200a7abd5fe948e890f151 (diff)
fix mason_comp via FS::SelfService
Diffstat (limited to 'httemplate/autohandler')
-rw-r--r--httemplate/autohandler2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/autohandler b/httemplate/autohandler
index 248f14a24..3cc8e1021 100644
--- a/httemplate/autohandler
+++ b/httemplate/autohandler
@@ -12,7 +12,7 @@ if ( UNIVERSAL::can(dbh, 'sprintProfile') ) {
my $profile = '';
- if ( lc($r->content_type) =~ /^text\/html/
+ if ( $r && lc($r->content_type) =~ /^text\/html/
&& $FS::CurrentUser::CurrentUser->option('show_db_profile')
)
{