fix mason_comp via FS::SelfService
authorIvan Kohler <ivan@freeside.biz>
Tue, 23 May 2017 15:15:17 +0000 (08:15 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 23 May 2017 15:15:17 +0000 (08:15 -0700)
httemplate/autohandler

index 248f14a..3cc8e10 100644 (file)
@@ -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')
      )
   {