Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #594 from kilida/patch-1
Browse files Browse the repository at this point in the history
Duplicate conditional expression in PayPalCredentialManager.php
  • Loading branch information
Jay authored Jun 21, 2016
2 parents a284bb6 + 7131cd9 commit f0ea94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PayPal/Core/PayPalCredentialManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private function initCredential($config)
$key = $prefix . $suffix;
$userName = null;
while (in_array($key, $arrayPartKeys)) {
if (isset($credArr[$key . ".ClientId"]) && isset($credArr[$key . ".ClientId"])) {
if (isset($credArr[$key . ".ClientId"]) && isset($credArr[$key . ".ClientSecret"])) {
$userName = $key;
$this->credentialHashmap[$userName] = new OAuthTokenCredential(
$credArr[$key . ".ClientId"],
Expand Down

0 comments on commit f0ea94c

Please sign in to comment.