From f296284779f4b8039924279fa36bed09082a4914 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 25 Aug 2015 16:09:45 +0100 Subject: [PATCH] Bug 14544: Remove warnings in tests --- Koha/Virtualshelves.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Virtualshelves.pm b/Koha/Virtualshelves.pm index cc2d498..fafa59f 100644 --- a/Koha/Virtualshelves.pm +++ b/Koha/Virtualshelves.pm @@ -57,7 +57,7 @@ sub get_private_shelves { join => [ 'virtualshelfshares' ], group_by => 'shelfnumber', order_by => 'shelfname', - ( $page and $rows ? ( page => $page, rows => $rows ) : () ) + ( ( $page and $rows ) ? ( page => $page, rows => $rows ) : () ) } ); } @@ -75,7 +75,7 @@ sub get_public_shelves { { group_by => 'shelfnumber', order_by => 'shelfname', - ( $page and $rows ? ( page => $page, rows => $rows ) : () ) + ( ( $page and $rows ) ? ( page => $page, rows => $rows ) : () ) } ); } -- 2.1.0