X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fautohandler;h=e89444cd977f691b1c41ea02ee03b6b77aeefa2e;hb=858a7bba8e63738c3dd47acb2524327201ec3bf8;hp=b278193812b0570d6abb2783bbee54d4f8c73ae2;hpb=b04dfa7c78a316b6b00afa17903424d71ba18cc4;p=freeside.git 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') ) {