View | Details | Raw Unified | Return to bug 10217
Collapse All | Expand All

(-)a/opac/opac-detail.pl (-2 / +4 lines)
Lines 442-448 if ($hideitems) { Link Here
442
}
442
}
443
443
444
my $branches = GetBranches();
444
my $branches = GetBranches();
445
my $branch = C4::Context->userenv->{branch};
445
my $branch = '';
446
if (C4::Context->userenv){
447
    $branch = C4::Context->userenv->{branch};
448
}
446
if ( C4::Context->preference('HighlightOwnItemsOnOPAC') ) {
449
if ( C4::Context->preference('HighlightOwnItemsOnOPAC') ) {
447
    if (
450
    if (
448
        ( ( C4::Context->preference('HighlightOwnItemsOnOPACWhich') eq 'PatronBranch' ) && $branch )
451
        ( ( C4::Context->preference('HighlightOwnItemsOnOPACWhich') eq 'PatronBranch' ) && $branch )
449
- 

Return to bug 10217