Skip to content

Commit

Permalink
Merge pull request #509 from FatchipRobert/MAG2-286-Ratepay-profile-w…
Browse files Browse the repository at this point in the history
…arning

MAG2-286 - Added isset check for some parameters
  • Loading branch information
janteuber authored Apr 19, 2023
2 parents b95bec6 + 919fef0 commit 677b7e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Model/ResourceModel/RatepayProfileConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ protected function convertYesNoToBool($sValue)
protected function getDataArray($aProfileResponse)
{
$aData = [
'profile_id' => $aProfileResponse['add_paydata[profile-id]'],
'merchant_name' => $aProfileResponse['add_paydata[merchant-name]'],
'merchant_status' => $aProfileResponse['add_paydata[merchant-status]'],
'shop_name' => $aProfileResponse['add_paydata[shop-name]'],
'profile_id' => isset($aProfileResponse['add_paydata[profile-id]']) ? $aProfileResponse['add_paydata[profile-id]'] : '',
'merchant_name' => isset($aProfileResponse['add_paydata[merchant-name]']) ? $aProfileResponse['add_paydata[merchant-name]'] : '',
'merchant_status' => isset($aProfileResponse['add_paydata[merchant-status]']) ? $aProfileResponse['add_paydata[merchant-status]'] : 0,
'shop_name' => isset($aProfileResponse['add_paydata[shop-name]']) ? $aProfileResponse['add_paydata[shop-name]'] : '',
'name' => $aProfileResponse['add_paydata[name]'],
'currency' => $aProfileResponse['add_paydata[currency]'],
'type' => $aProfileResponse['add_paydata[type]'],
Expand Down

0 comments on commit 677b7e9

Please sign in to comment.