Permalink
Browse files

[#19181255] fixup: clarify conditional flow

  • Loading branch information...
1 parent 16ea90b commit 5ae6fde3770f1730358c752cf2c7ac0327c27688 @ctfliblime ctfliblime committed Nov 1, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 C4/Members.pm
View
@@ -273,10 +273,11 @@ sub SearchMember {
$query =~ s/COUNT\(borrowernumber\)/*/xms;
$query .= " ORDER BY $orderby ";
- $query .= sprintf(' LIMIT %d,%d',
- $limits->{offset} //0,
- $limits->{limit} //C4::Context->preference('PatronsPerPage'))
- if $limits->{limit};
+ if ($limits->{limit}) {
+ $query .= sprintf(' LIMIT %d,%d',
+ $limits->{offset} // 0,
+ $limits->{limit} // C4::Context->preference('PatronsPerPage'));
+ }
$data = $dbh->selectall_arrayref($query, {Slice => {}}, @bind);

0 comments on commit 5ae6fde

Please sign in to comment.