diff --git a/llinstagram.php b/llinstagram.php index 6402e7b..38c1570 100644 --- a/llinstagram.php +++ b/llinstagram.php @@ -98,7 +98,12 @@ class LLInstagramPlugin extends Plugin $baseurl = Uri::getCurrentUri()->withScheme('https')->getBaseUrl(); $url = sprintf('%s%s?%s', $baseurl, $this::API_URL, http_build_query($params)); - $data = Response::get($url); + + try { + $data = Response::get($url); + } catch(\Exception $e) { + $data = '[]'; + } return json_decode($data); }