summaryrefslogtreecommitdiff
path: root/LedgerSMB/User.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/User.pm')
-rwxr-xr-xLedgerSMB/User.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/User.pm b/LedgerSMB/User.pm
index 2808d8c4..71199a1a 100755
--- a/LedgerSMB/User.pm
+++ b/LedgerSMB/User.pm
@@ -900,7 +900,7 @@ sub config_vars {
sub error {
my ($self, $msg) = @_;
- if ($ENV{HTTP_USER_AGENT}) {
+ if ($ENV{GATEWAY_INTERFACE}) {
print qq|Content-Type: text/html\n\n|.
qq|<body bgcolor=ffffff>\n\n|.
qq|<h2><font color=red>Error!</font></h2>\n|.