diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-05-23 08:15:21 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-05-23 08:15:21 -0700 |
commit | a9dbe43e46ef78dbb38106863dcfea7cdef73ee9 (patch) | |
tree | 941868eebec7a4b4de3d7890f03ba92c9b3d234f /httemplate/autohandler | |
parent | 75485ea22d91bfb1e74f6cf1d8ec6f27a7f24e82 (diff) |
fix mason_comp via FS::SelfService
Diffstat (limited to 'httemplate/autohandler')
-rw-r--r-- | httemplate/autohandler | 2 |
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') ) { |