diff --git a/CHANGELOG.md b/CHANGELOG.md index 9052e70..5733d33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Strava Sync Changelog +## 1.0.7 - 2019-05-31 +### Fixed +- Error where no userId was defined when checking to see if user connected to Strava + ## 1.0.6 - 2019-05-31 ### Added - Table attribute to the users table view to see if user is connected/disconnected from Strava diff --git a/composer.json b/composer.json index de3cbc0..4d04c93 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "bymayo/strava-sync", "description": "Connect to Strava with oAuth and sync activities etc to Craft CMS ", "type": "craft-plugin", - "version": "1.0.6", + "version": "1.0.7", "keywords": [ "craft", "cms", diff --git a/src/variables/StravaSyncVariable.php b/src/variables/StravaSyncVariable.php index ffb9dce..9c17669 100755 --- a/src/variables/StravaSyncVariable.php +++ b/src/variables/StravaSyncVariable.php @@ -18,7 +18,7 @@ public function request($method, $params = null, $userId = null) return $connect = StravaSync::getInstance()->oauthService->request($method, $params, $userId); } - public function connected($userId) + public function connected($userId = null) { return StravaSync::getInstance()->userService->checkUserLinkExists($userId); }