Don't accept a fallback instance with a single result
This commit is contained in:
parent
4aea931839
commit
19aef64bab
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
|||
$code = curl_getinfo($librex_ch)["http_code"];
|
||||
$results = json_decode($response, true);
|
||||
|
||||
} while ( $results == null || empty($results));
|
||||
} while ( $results == null || count($results) <= 1);
|
||||
|
||||
return array_values($results);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue