diff --git a/C4/Auth.pm b/C4/Auth.pm index 4a8e955586..03e631c8a1 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -557,6 +557,7 @@ sub _version_check { if (C4::Context->preference('OpacMaintenance') && $type eq 'opac') { warn "OPAC Install required, redirecting to maintenance"; print $query->redirect("/cgi-bin/koha/maintenance.pl"); + safe_exit; } unless ( $version = C4::Context->preference('Version') ) { # assignment, not comparison if ( $type ne 'opac' ) {