From: Ivan Kohler Date: Tue, 23 May 2017 15:15:17 +0000 (-0700) Subject: fix mason_comp via FS::SelfService X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=fca522dde5a5edfc3eb78d4c58a7e6519decb5de fix mason_comp via FS::SelfService --- 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') ) {