mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 03:18:48 +00:00
Bugfixing for CurlResult
This commit is contained in:
parent
ce2af45897
commit
2e8d9ba39b
9 changed files with 13 additions and 14 deletions
|
@ -129,9 +129,9 @@ function openstreetmap_get_coordinates($a, &$b)
|
|||
$j = Cache::get($cachekey);
|
||||
|
||||
if (is_null($j)) {
|
||||
$x = Network::curl($nomserver . $args);
|
||||
if ($x['success']) {
|
||||
$j = json_decode($x['body'], true);
|
||||
$curlResult = Network::curl($nomserver . $args);
|
||||
if ($curlResult->isSuccess()) {
|
||||
$j = json_decode($curlResult->getBody(), true);
|
||||
Cache::set($cachekey, $j, CACHE_MONTH);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue