Skip to content
This repository was archived by the owner on Nov 2, 2022. It is now read-only.

Commit 03c0215

Browse files
committed
justering av GFDibsDao::updateTransaction()
1 parent 5070169 commit 03c0215

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

GFDibsDao.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,18 @@ function updateTransaction( $post ){
8989
$paytype = null;
9090
if ( isset($post['cardnomask']) ){
9191
$paytype = $post['cardnomask'];
92+
}
9293

93-
if ( isset($post['paytype']) ){
94+
if ( isset($post['paytype']) ){
95+
if ( trim($paytype) ){
9496
$paytype .= ' ('.$post['paytype'].')';
9597
}
98+
else{
99+
$paytype .= $post['paytype'];
100+
}
96101
}
97102

103+
98104
$this->db->update(
99105
$this->gf_table_name,
100106
array(

GFDibsHook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,15 @@ public static function parseNotification( $mail ){
155155

156156
public static function disableNotifications($unknown, $confirmation, $form, $lead){
157157
$Dao = new GFDibsDao();
158-
_log('GFDibsHook::disableNotifications()');
158+
//_log('GFDibsHook::disableNotifications()');
159159

160160
$is_disabled = false;
161161

162162
if ( $feed_id = $Dao->isDibsForm($form['id']) ){
163163
$feed = $Dao->getDibsMeta($feed_id);
164164

165165
if( self::isDibsPayment($feed, $lead) ){
166-
$Dao->log($feed->meta['gf_dibs_no_confirmations']);
166+
//$Dao->log($feed->meta['gf_dibs_no_confirmations']);
167167
if ( isset($feed->meta['gf_dibs_no_confirmations']) && $feed->meta['gf_dibs_no_confirmations'] == '1' ){
168168
$is_disabled = true;
169169
}

0 commit comments

Comments
 (0)