From fca522dde5a5edfc3eb78d4c58a7e6519decb5de Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 23 May 2017 08:15:17 -0700 Subject: [PATCH] fix mason_comp via FS::SelfService --- httemplate/autohandler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') ) { -- 2.11.0