projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Form 477 update for 2022+ reporting (2020 census data), RT#86245 (New FS::Misc::Geo...
[freeside.git]
/
httemplate
/
autohandler
diff --git
a/httemplate/autohandler
b/httemplate/autohandler
index
b5b1071
..
3cc8e10
100644
(file)
--- a/
httemplate/autohandler
+++ b/
httemplate/autohandler
@@
-12,7
+12,7
@@
if ( UNIVERSAL::can(dbh, 'sprintProfile') ) {
my $profile = '';
my $profile = '';
- if ( lc($r->content_type) =~ /^text\/html/
+ if (
$r &&
lc($r->content_type) =~ /^text\/html/
&& $FS::CurrentUser::CurrentUser->option('show_db_profile')
)
{
&& $FS::CurrentUser::CurrentUser->option('show_db_profile')
)
{
@@
-41,7
+41,7
@@
if ( UNIVERSAL::can(dbh, 'sprintProfile') ) {
dbh->{'private_profile'} = {};
dbh->{'private_profile'} = {};
- s/(<\/BODY>[\s\n]*<\/HTML>[\s\n]*)
$
/$profile$1/i;
+ s/(<\/BODY>[\s\n]*<\/HTML>[\s\n]*)/$profile$1/i;
}
</%filter>
}
</%filter>