From 477c66b8ac94570afd2e700552aa5e398b82fb39 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Fri, 17 Jul 2015 00:50:53 +0000 Subject: [PATCH] Bug 14551: Silencing warn triggered by sending a list via email on OPAC Uninitialized value $sort_direction To test: 1) To recreate, select any list from the Lists menu on the OPAC 2) Click 'Send list' 3) Enter an email address to send the list to and click 'Send' 4) Notice warn in error log 5) Apply patch, refresh page and resend list 6) Notice warn is gone but page still works --- C4/VirtualShelves.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/C4/VirtualShelves.pm b/C4/VirtualShelves.pm index 255f605..d54d4ad 100644 --- a/C4/VirtualShelves.pm +++ b/C4/VirtualShelves.pm @@ -264,8 +264,7 @@ sub GetShelfContents { $sth2->execute($shelfnumber); ($sortfield) = $sth2->fetchrow_array; } - - $sort_direction //= ''; + $sort_direction //= ''; my $query = " SELECT DISTINCT vc.biblionumber, vc.shelfnumber, vc.dateadded, itemtypes.*, biblio.*, biblioitems.itemtype, biblioitems.publicationyear as year, biblioitems.publishercode, biblioitems.place, biblioitems.size, biblioitems.pages -- 1.7.10.4