Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit 4c8f920

Browse files
Correct misnamed $token variable.
The if statement was looking for a variable called $token, but it should be looking for $tokenModel. This caused a template error if the user added an access token in Basic Auth.
1 parent f57ffae commit 4c8f920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

placid/services/Placid_RequestsService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ private function _createRequest($client, $record = null)
404404

405405
$tokenModel = craft()->placid_token->findTokenById($tokenId);
406406

407-
if(!$token->forceQuery)
407+
if(!$tokenModel->forceQuery)
408408
{
409409
$request->addHeader('Authorization', 'Bearer ' . $tokenModel->encoded_token);
410410
}

0 commit comments

Comments
 (0)