diff options
Diffstat (limited to 'rt/share/html/Elements/Error')
-rwxr-xr-x | rt/share/html/Elements/Error | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rt/share/html/Elements/Error b/rt/share/html/Elements/Error index 50f3b775c..87dfd0245 100755 --- a/rt/share/html/Elements/Error +++ b/rt/share/html/Elements/Error @@ -81,7 +81,7 @@ Encode::_utf8_off($error); $RT::Logger->error($error); -if ( defined $session{'SessionType'} && $session{'SessionType'} eq 'REST' ) { +if ( $session{'REST'} ) { $r->content_type('text/plain'); $m->out( "Error: " . $Why . "\n" ); $m->out( $Details . "\n" ) if defined $Details && length $Details; |