Bug 18785: Force scalar context in Koha::Subscription::biblio
[koha_ffzg] / Koha / Subscription.pm
index 0398763..2a793e5 100644 (file)
@@ -45,7 +45,7 @@ Returns the biblio linked to this subscription as a Koha::Biblio object
 sub biblio {
     my ($self) = @_;
 
-    return Koha::Biblios->find($self->biblionumber);
+    return scalar Koha::Biblios->find($self->biblionumber);
 }
 
 =head3 type