Bug 10838: (follow-up) silence another warn

To test:

[1] In the staff interface, enter nothing in the patron search box
    and hit the search button.
[2] Note the errors in the logs concerning an uninitialized $count
    variable.
[3] Apply the patch and repeat step 1.  Note that this time, no
    warnings are logged.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Galen Charlton 2013-09-16 15:48:56 +00:00
parent af276d4864
commit 301d20715f
1 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,8 @@ if ($results) {
@$results = grep { $_->{$field} eq $patron->{$field} } @$results;
}
$count = scalar(@$results);
} else {
$count = 0;
}
if($count == 1){