From d831a03fdefc56b5462df08cbe626887291c01c8 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 5 Dec 2011 21:52:44 +0100 Subject: [PATCH] Bug 7321: Silence some warns in Koha.pm While testing bug 7013 I noticed a lot of warns in the koha error log. This patch is silencing them. To test: Add or edit an authorised value and check your log files before and after applying the patch. Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain --- C4/Koha.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/C4/Koha.pm b/C4/Koha.pm index 06b2ec5289..789f674efb 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -573,9 +573,8 @@ sub getImageSets { my @imagesets = (); # list of hasrefs of image set data to pass to template my @subdirectories = _getSubdirectoryNames( $paths->{'staff'}{'filesystem'} ); -warn $paths->{'staff'}{'filesystem'}; foreach my $imagesubdir ( @subdirectories ) { - warn $imagesubdir; + warn $imagesubdir if $DEBUG; my @imagelist = (); # hashrefs of image info my @imagenames = _getImagesFromDirectory( File::Spec->catfile( $paths->{'staff'}{'filesystem'}, $imagesubdir ) ); my $imagesetactive = 0; -- 2.39.5