From 5c38ace210cc282e1f30b4ac94a2751529c29156 Mon Sep 17 00:00:00 2001 From: kw-pr <9133572+kw-pr@users.noreply.github.com> Date: Wed, 29 Aug 2018 09:20:02 +0200 Subject: [PATCH] small fixes $prmsTextIgnore does not exist, changed to $prmsTextToIgnore. foreach overwrites variable (not used anyway). $bookingModeDescEn does not exist. changed to $bookingModeDescEN --- Frontend/HeidelGateway/Bootstrap.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Frontend/HeidelGateway/Bootstrap.php b/Frontend/HeidelGateway/Bootstrap.php index 06d7414..f91ab9b 100644 --- a/Frontend/HeidelGateway/Bootstrap.php +++ b/Frontend/HeidelGateway/Bootstrap.php @@ -3404,7 +3404,7 @@ public static function Logging($msg){ "createPayments inserting new paymethods| SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'hgw_san' for key 'name'", ); - if (in_array($prms_text, $prmsTextIgnore)) { + if (in_array($prms_text, $prmsTextToIgnore)) { return ; } else { return Shopware()->Db()->query($sql, $params); @@ -3592,7 +3592,7 @@ public function addSnippets(){ return; } - foreach($langs as $key => $lang){ + foreach($langs as $lang){ if(is_int(strpos($lang['locale'],'de_'))){ $snipLang = 'de'; }else{ @@ -3601,7 +3601,7 @@ public function addSnippets(){ $snippets = $this->snippets(); - foreach($snippets as $key => $snippet){ + foreach($snippets as $snippet){ // check if all array elements are set and lang matches if($snippet[1] == "de") @@ -4539,15 +4539,15 @@ public function addPluginTranslation(){ 'HGW_HPR_CHANNEL' => array('label' => 'EasyCredit Channel'), 'HGW_CC_BOOKING_MODE' => array( 'label' => 'Credit Card booking mode', - 'description' => $bookingModeDescEn, + 'description' => $bookingModeDescEN, ), 'HGW_DC_BOOKING_MODE' => array( 'label' => 'Debit Card booking mode', - 'description' => $bookingModeDescEn, + 'description' => $bookingModeDescEN, ), 'HGW_DD_BOOKING_MODE' => array( 'label' => 'Direct Debit booking mode', - 'description' => $bookingModeDescEn, + 'description' => $bookingModeDescEN, ), 'HGW_DD_GUARANTEE_MODE' => array( 'label' => 'Direct debit with guarantee', @@ -4559,7 +4559,7 @@ public function addPluginTranslation(){ ), 'HGW_MPA_BOOKING_MODE' => array( 'label' => 'MasterPass booking mode', - 'description' => $bookingModeDescEn, + 'description' => $bookingModeDescEN, ), 'HGW_CHB_STATUS' => array( 'label' => 'Chargeback State', @@ -4744,4 +4744,4 @@ public static function formatUserInfos($user = null) } return $user; } -} \ No newline at end of file +}