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:
parent
af276d4864
commit
301d20715f
|
|
@ -125,6 +125,8 @@ if ($results) {
|
|||
@$results = grep { $_->{$field} eq $patron->{$field} } @$results;
|
||||
}
|
||||
$count = scalar(@$results);
|
||||
} else {
|
||||
$count = 0;
|
||||
}
|
||||
|
||||
if($count == 1){
|
||||
|
|
|
|||
Loading…
Reference in New Issue