Skip to content

Commit ceb3ef6

Browse files
committed
bug gix
1 parent 26ae9f1 commit ceb3ef6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Instagram/Instagram.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ public function setAccessToken( $accessToken ) {
227227
*
228228
* @param string $type type of link after or before.
229229
* @param array $response Instagram api response.
230+
* @param string $endpoint endpoint for the request.
230231
* @param array $params specific request params.
231232
* @return void
232233
*/

src/Instagram/User/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function __construct( $config ) {
7979
parent::__construct( $config );
8080

8181
// store the user id
82-
$this->userId = $config['user_id'];
82+
$this->userId = isset( $config['user_id'] ) ? $config['user_id'] : '';
8383
}
8484

8585
/**

0 commit comments

Comments
 (0)