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>
This commit is contained in:
parent
2aeab5ba46
commit
7ca66bf719
|
|
@ -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