mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 18:24:25 +00:00
[Station location] Changed county limit to 300 to avoid result getting truncated.
This commit is contained in:
parent
050182f2f5
commit
9e4bd5ff36
@ -167,8 +167,8 @@ class Station extends CI_Controller {
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($result as &$value) {
|
foreach ($result as &$value) {
|
||||||
$county = explode(',', $value);
|
$county = explode(',', $value);
|
||||||
// Limit to 100 as to not slowdown browser too much
|
// Limit to 300 as to not slowdown browser too much
|
||||||
if (count($json) <= 100) {
|
if (count($json) <= 300) {
|
||||||
$json[] = ["name"=>$county[1]];
|
$json[] = ["name"=>$county[1]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user