[Station location] Changed county limit to 300 to avoid result getting truncated.

This commit is contained in:
Andreas 2021-12-27 20:24:00 +01:00
parent 050182f2f5
commit 9e4bd5ff36

View File

@ -167,8 +167,8 @@ class Station extends CI_Controller {
$i = 0;
foreach ($result as &$value) {
$county = explode(',', $value);
// Limit to 100 as to not slowdown browser too much
if (count($json) <= 100) {
// Limit to 300 as to not slowdown browser too much
if (count($json) <= 300) {
$json[] = ["name"=>$county[1]];
}
}