Ejegg has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/298308

Change subject: Don't treat stomp frame like array
......................................................................

Don't treat stomp frame like array

Change-Id: I455f6c25c09ebb5666729921d10e86861ae28099
---
M sites/all/modules/queue2civicrm/fredge/wmf_fredge_qc.module
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm 
refs/changes/08/298308/1

diff --git a/sites/all/modules/queue2civicrm/fredge/wmf_fredge_qc.module 
b/sites/all/modules/queue2civicrm/fredge/wmf_fredge_qc.module
index 0c83c0d..1f7ee9e 100644
--- a/sites/all/modules/queue2civicrm/fredge/wmf_fredge_qc.module
+++ b/sites/all/modules/queue2civicrm/fredge/wmf_fredge_qc.module
@@ -100,7 +100,7 @@
 /**
  * Processes an individual payments-init message.
  *
- * @param $msg A STOMP message class.
+ * @param $msg Stomp_Frame A STOMP message class.
  *
  */
 function fredge_payments_init_process_message($msg) {
@@ -116,8 +116,8 @@
   $dbs->push('fredge');
   $query = 'SELECT id FROM payments_initial WHERE contribution_tracking_id = 
:ct_id AND order_id = :order_id LIMIT 1';
   $result = db_query( $query, array(
-    ':ct_id' => $msg['contribution_tracking_id'],
-    ':order_id' => $msg['order_id']
+    ':ct_id' => $body['contribution_tracking_id'],
+    ':order_id' => $body['order_id']
   ) );
   if ( $result->rowCount() === 1 ){
     $id = $result->fetch()->id;
@@ -141,7 +141,7 @@
 /**
  * Processes an individual payments-antifraud message.
  *
- * @param $msg A STOMP message class.
+ * @param $msg Stomp_Frame A STOMP message class.
  *
  */
 function fredge_payments_antifraud_process_message($msg) {

-- 
To view, visit https://gerrit.wikimedia.org/r/298308
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I455f6c25c09ebb5666729921d10e86861ae28099
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to