Skip to content

Commit

Permalink
Revert "Correct logic of DisplayErrors"
Browse files Browse the repository at this point in the history
This reverts commit 096f9b9.
  • Loading branch information
David Christensen committed Sep 11, 2017
1 parent 096f9b9 commit 1f6b456
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Vend/Dispatch.pm
Expand Up @@ -690,7 +690,7 @@ Sorry, there was an error in processing this form action. Please
report the error or try again later.
EOF
$template .= "\n\nError: %s\n"
if $Global::DisplayErrors || $Vend::Cfg->{DisplayErrors}
if $Global::DisplayErrors && $Vend::Cfg->{DisplayErrors}
;
$template = get_locale_message(500, $template, $err);
logError($err);
Expand Down Expand Up @@ -1680,7 +1680,7 @@ EOF
and not ($Vend::admin and ! $::Variable->{MV_TRACK_ADMIN});
# END TRACK

if($Vend::Cfg->{DisplayErrors} or $Global::DisplayErrors) {
if($Vend::Cfg->{DisplayErrors} and $Global::DisplayErrors) {
$SIG{"__DIE__"} = sub {
my $msg = shift;
put_session() if $Vend::HaveSession;
Expand Down Expand Up @@ -1889,7 +1889,7 @@ Sorry, there was an error in processing this form action. Please
report the error or try again later.
EOF
$template .= "\n\nError: %s\n"
if $Global::DisplayErrors || $Vend::Cfg->{DisplayErrors}
if $Global::DisplayErrors && $Vend::Cfg->{DisplayErrors}
;
$template = get_locale_message(500, $template, $err);
logError($err);
Expand Down

0 comments on commit 1f6b456

Please sign in to comment.