diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-05-23 08:15:22 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-05-23 08:15:22 -0700 |
commit | 35e48065dcbf51d721043b27ce54307e5a3bdae7 (patch) | |
tree | d078faefa92589d658c1b9454b226079ce5119da | |
parent | 0edab19755de1aedc34fc6b1bc91c8f6d3e91149 (diff) |
fix mason_comp via FS::SelfService
-rw-r--r-- | httemplate/autohandler | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/autohandler b/httemplate/autohandler index b27819381..e89444cd9 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') ) { |