mirror of
https://github.com/Mibew/open-street-map-history-plugin.git
synced 2025-04-12 03:00:10 +03:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
929606720b | |||
e5f734bb7b |
@ -44,7 +44,7 @@ class GeoIPDataController extends AbstractController
|
||||
$osm_plugin = PluginManager::getInstance()->getPlugin('Mibew:OpenStreetMap');
|
||||
$osm_plugin->usersFunctionCallHandler($geo_data);
|
||||
|
||||
$results = $geo_data['errorCode'] ? array() : $geo_data['results'];
|
||||
$results = array_key_exists('errorCode', $geo_data) && $geo_data['errorCode'] ? array() : $geo_data['results'];
|
||||
return new JsonResponse($results);
|
||||
}
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
||||
*/
|
||||
public static function getVersion()
|
||||
{
|
||||
return '0.0.1';
|
||||
return '0.0.2';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"devDependencies": {
|
||||
"bower": "~1.8.8",
|
||||
"gulp": "~4.0.0",
|
||||
|
Loading…
Reference in New Issue
Block a user