CMS MADE SIMPLE FORGE

SisowGateway

 

[#11844] Notices in class.gateway.php

avatar
Created By: Rolf (rolf1)
Date Submitted: Sat Jun 23 11:54:39 -0400 2018

Assigned To:
Version: 1.0.3
CMSMS Version: 2.2.7
Severity: Minor
Resolution: Fixed
State: Open
Summary:
Notices in class.gateway.php
Detailed Description:
Hello,

Thanks for this module!
In the frontend with display errors enabled I get several notices of unset
variables.

Fixable by changing line 75-86 from:

$MerchandID =  $row['MerchantID'];
$MerchantKey = $row['MerchantKey'];
$ShopId = $row['ShopId'];
$testmode = $row['testmode'];
$ssofort = $row['sofort'];
$smistercash = $row['mistercash'];
$swebshop = $row['webshop'];
$spodium = $row['podium'];
$spaypalec = $row['paypalec'];
$screditcards = $row['creditcards'];
$sklarna = $row['klarna'];
$sjquery = $row['jquery'];

To:

$MerchandID =  isset($row['MerchantID']) ? $row['MerchantID'] : '';
$MerchantKey = isset($row['MerchantKey']) ? $row['MerchantKey'] : '';
$ShopId = isset($row['ShopId']) ? $row['ShopId'] : '';
$testmode = isset($row['testmode']) ? $row['testmode'] : '';
$ssofort = isset($row['sofort']) ? $row['sofort'] : '';
$smistercash = isset($row['mistercash']) ? $row['mistercash'] : '';
$swebshop = isset($row['webshop']) ? $row['webshop'] : '';
$spodium = isset($row['podium']) ? $row['podium'] : '';
$spaypalec = isset($row['paypalec']) ? $row['paypalec'] : '';
$screditcards = isset($row['creditcards']) ? $row['creditcards'] : '';
$sklarna = isset($row['klarna']) ? $row['klarna'] : '';
$sjquery = isset($row['jquery']) ? $row['jquery'] : '';

Grtz. Rolf


History

Comments
avatar
Date: 2018-06-25 06:55
Posted By: Rolf (rolf1)

Fixed in SVN
      
Updates

Updated: 2018-06-25 06:55
resolution_id: => 7