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:
parent
781f7e5f9e
commit
d84d276587
|
|
@ -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}
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue