From a6aa31a300f010f3dc13a5cd31d44d319975446b Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Fri, 26 May 2017 09:52:44 -0400 Subject: [PATCH] Bug 1985: Fix whitespace in opac/opac-review.pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit $ git diff -w origin/master -- should have no differences Signed-off-by: Marc VĂ©ron --- opac/opac-review.pl | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/opac/opac-review.pl b/opac/opac-review.pl index 86a9848ba9..841810f8d8 100755 --- a/opac/opac-review.pl +++ b/opac/opac-review.pl @@ -61,16 +61,16 @@ if( !$biblio ) { } if( !@errors && defined $review ) { - if ($review !~ /\S/) { - push @errors, {empty=>1}; - } else { - $clean = C4::Scrubber->new('comment')->scrub($review); - if ($clean !~ /\S/) { - push @errors, {scrubbed_all=>1}; - } else { - if ($clean ne $review) { - push @errors, {scrubbed=>$clean}; - } + if ($review !~ /\S/) { + push @errors, {empty=>1}; + } else { + $clean = C4::Scrubber->new('comment')->scrub($review); + if ($clean !~ /\S/) { + push @errors, {scrubbed_all=>1}; + } else { + if ($clean ne $review) { + push @errors, {scrubbed=>$clean}; + } if ($savedreview) { $savedreview->set( { @@ -88,9 +88,9 @@ if( !@errors && defined $review ) { } )->store->reviewid; } - unless (@errors){ $template->param(WINDOW_CLOSE=>1); } - } - } + unless (@errors){ $template->param(WINDOW_CLOSE=>1); } + } + } } (@errors ) and $template->param( ERRORS=>\@errors); ($cgi_debug) and $template->param(cgi_debug=>1 ); -- 2.11.0