Bug 10761: (follow-up) use explicit return in C4::Reports::Guided::delete_report()
authorGalen Charlton <gmc@esilibrary.com>
Wed, 21 Aug 2013 14:45:41 +0000 (14:45 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 21 Aug 2013 14:45:41 +0000 (14:45 +0000)
Now that we care about the return value of this routine, we'll keep
perlcritic happy.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Reports/Guided.pm

index 39a06ff..22a23dd 100644 (file)
@@ -614,7 +614,7 @@ sub delete_report {
     my $dbh = C4::Context->dbh;
     my $query = 'DELETE FROM saved_sql WHERE id IN (' . join( ',', ('?') x @ids ) . ')';
     my $sth = $dbh->prepare($query);
-    $sth->execute(@ids);
+    return $sth->execute(@ids);
 }
 
 my $SAVED_REPORTS_BASE_QRY = <<EOQ;