From: Kyle M Hall <[email protected]>
Signed-off-by: Srdjan <[email protected]>
---
C4/Biblio.pm | 2 ++
C4/Items.pm | 2 ++
2 files changed, 4 insertions(+)
diff --git a/C4/Biblio.pm b/C4/Biblio.pm
index ae1f2f3..3b18064 100644
--- a/C4/Biblio.pm
+++ b/C4/Biblio.pm
@@ -1072,6 +1072,8 @@ sub GetBiblio {
sub GetBiblioItemInfosOf {
my @biblioitemnumbers = @_;
+ return unless @biblioitemnumbers;
+
my $biblioitemnumber_values = @biblioitemnumbers ? join( ',',
@biblioitemnumbers ) : "''";
my $query = "
diff --git a/C4/Items.pm b/C4/Items.pm
index 651e590..cdf17e4 100644
--- a/C4/Items.pm
+++ b/C4/Items.pm
@@ -1195,6 +1195,8 @@ sub GetItemsCount {
sub GetItemInfosOf {
my @itemnumbers = @_;
+ return unless @itemnumbers;
+
my $itemnumber_values = @itemnumbers ? join( ',', @itemnumbers ) : "''";
my $query = "
--
2.7.4
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/