https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31908 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=32075 CC| |m.de.rooy@rijksmuseum.nl --- Comment #4 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- - my $local_pendingsuggestions_count = $pendingsuggestions->search({ 'me.branchcode' => C4::Context->userenv()->{'branch'} })->count(); + if( C4::Context->userenv() && C4::Context->userenv()->{branch} ){ In this case there should be a userenv. Why it isnt? Reported this too on bug 32075. Weird. -- You are receiving this mail because: You are watching all bug changes.