| @@ -23,9 +23,8 @@ | ||
| 23 | 23 | public $scope; |
| 24 | 24 | public $cached_token; |
| 25 | 25 | public $field_list; |
| 26 | 26 | public $token_valid; |
| 27 | - private static $instance = null; | |
| 28 | 27 | |
| 29 | 28 | protected function __construct() { |
| 30 | 29 | parent::__construct(); |
| 31 | 30 | global $photonic_instagram_disable_title_link, $photonic_instagram_access_token; |
| @@ -207,9 +206,9 @@ | ||
| 207 | 206 | } |
| 208 | 207 | else { |
| 209 | 208 | $this->pop_from_stack(); // 'Process response' |
| 210 | 209 | $this->pop_from_stack(); // 'Make call' |
| 211 | - $single_photo = new Single_Photo($body->media_url, $body->permalink, '', isset($body->caption) ? $body->caption : ''); | |
| 210 | + $single_photo = new Single_Photo($body->media_url, $body->permalink, '', $body->caption ?? ''); | |
| 212 | 211 | $components[] = $single_photo; |
| 213 | 212 | return $components; |
| 214 | 213 | } |
| 215 | 214 | } |