projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compliance solutions integration: import and use produce/service code catalog, RT...
[freeside.git]
/
httemplate
/
autohandler
diff --git
a/httemplate/autohandler
b/httemplate/autohandler
index
c326e3e
..
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,10
+41,10
@@
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>
<%cleanup>
}
</%filter>
<%cleanup>
- dbh->commit();
+ dbh->commit()
if dbh
;
</%cleanup>
</%cleanup>