projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bug 7684: multiple fixes for inventory
[koha.git]
/
C4
/
Templates.pm
diff --git
a/C4/Templates.pm
b/C4/Templates.pm
index
0b93971
..
2d2304f
100644
(file)
--- a/
C4/Templates.pm
+++ b/
C4/Templates.pm
@@
-360,7
+360,7
@@
sub getlanguage {
}
# cookie
- if ( $query->cookie('KohaOpacLanguage') ) {
+ if (
$query and
$query->cookie('KohaOpacLanguage') ) {
$lang = $query->cookie('KohaOpacLanguage');
$lang =~ s/[^a-zA-Z_-]*//; # sanitize cookie
}