X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=suggestion%2Fsuggestion.pl;h=4788266ddda98e4952c07e425aea4f3fd953e161;hb=b00ec06968e6377c61523e72e0a49e6c9f8bf8b8;hp=b4f4d37a7ed64f252f1dccc649e28aa973e97a60;hpb=9e4c289d3f68aaab5d47172940e30fba0819804e;p=koha.git diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index b4f4d37a7e..4788266ddd 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -276,7 +276,7 @@ if(defined($returnsuggested) and $returnsuggested ne "noone") #branch display management my $branchfilter = ($displayby ne "branchcode") ? $input->param('branchcode') : ''; -my $onlymine=C4::Context->preference('IndependantBranches') && +my $onlymine=C4::Context->preference('IndependentBranches') && C4::Context->userenv && C4::Context->userenv->{flags}!=1 && C4::Context->userenv->{branch};