Bug 39712: Remove warnings

[WARN] Use of uninitialized value $view in exists at /kohadevbox/koha/Koha/Manual.pm line 346.

Signed-off-by: Aude Charillon <aude.charillon@openfifth.co.uk>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 7ca66bf719)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-06-24 12:30:36 +02:00 committed by Paul Derscheid
parent 781f7e5f9e
commit d84d276587
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 3 additions and 3 deletions

View File

@ -340,9 +340,9 @@ sub get_url {
my $base_url = _get_base_url($preferred_language);
return $base_url
. (
exists $mapping->{$view} ? $mapping->{$view}
: exists $mapping->{$file} ? $mapping->{$file}
: $mapping->{mainpage}
( defined $view && exists $mapping->{$view} ) ? $mapping->{$view}
: ( exists $mapping->{$file} ) ? $mapping->{$file}
: $mapping->{mainpage}
);
}