From d4b0a31a94eaec4329766af22e3fecd389201b6c Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Tue, 3 Sep 2024 20:34:16 +0000 Subject: [PATCH] Bug 13342: Perltidy --- opac/opac-review.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opac/opac-review.pl b/opac/opac-review.pl index f69740b2c2..0d85019ef6 100755 --- a/opac/opac-review.pl +++ b/opac/opac-review.pl @@ -52,10 +52,10 @@ if( !$biblio ) { } elsif( $reviewid ) { # edit existing one, check on creator $savedreview = Koha::Reviews->search({ reviewid => $reviewid, borrowernumber => $borrowernumber })->next; push @errors, { unauthorized => 1 } if !$savedreview; -} else { # this check prevents adding multiple comments - # FIXME biblionumber, borrowernumber should be a unique key of reviews - $savedreview = Koha::Reviews->search({ biblionumber => $biblionumber, borrowernumber => $borrowernumber })->next; - $review = $savedreview? $savedreview->review: $review; +} else { # this check prevents adding multiple comments + # FIXME biblionumber, borrowernumber should be a unique key of reviews + $savedreview = Koha::Reviews->search( { biblionumber => $biblionumber, borrowernumber => $borrowernumber } )->next; + $review = $savedreview ? $savedreview->review : $review; } if( $op =~ /^cud-/ && !@errors && defined $review ) { -- 2.34.1