search timeouts. This allows the API call to log the error
and return reasonable results
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16625
dcc99617-32d9-48b4-a31d-
7c20da2025e4
$results = $U->storagereq($method, %$search_hash);
$search_duration = time - $start;
$logger->info("staged search: DB call took $search_duration seconds and returned ".scalar(@$results)." rows, including summary");
- $summary = shift(@$results);
+ $summary = shift(@$results) if $results;
unless($summary) {
$logger->info("search timed out: duration=$search_duration: params=".