Cdentinger has uploaded a new change for review.

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

Change subject: Fix undefined date warning
......................................................................

Fix undefined date warning

Change-Id: Id85458d4dd4936189745bddf6d01a88af2950e00
---
M PaymentProviders/PayPal/Job.php
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/SmashPig 
refs/changes/11/312311/1

diff --git a/PaymentProviders/PayPal/Job.php b/PaymentProviders/PayPal/Job.php
index 703f905..00cb5cf 100644
--- a/PaymentProviders/PayPal/Job.php
+++ b/PaymentProviders/PayPal/Job.php
@@ -62,10 +62,11 @@
                        if ( $msg_type === 'refund' ) {
                                $new_msg->gateway_refund_id = 
$request['txn_id'];
                        }
+
+                       // FIXME once recurring uses normalized msg it needs 
this too
+                       $new_msg->date = strtotime( $new_msg->date );
                }
 
-               // hax
-               $new_msg->date = strtotime( $new_msg->date );
                $new_msg->gateway = 'paypal';
 
                // Save to appropriate queue.

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id85458d4dd4936189745bddf6d01a88af2950e00
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/SmashPig
Gerrit-Branch: master
Gerrit-Owner: Cdentinger <cdentin...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to