X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fautohandler;h=3cc8e1021b1764da697ab3c8e2a31c446fc4e73f;hp=248f14a24211bd65cb765ce7abe8c341532aa6e9;hb=11bbf29de447fe39e9d7155fe280a0df70fa8c3c;hpb=23699764d0d8436b50f5cf88f798c552969714eb 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') ) {