Version 4.7.23
This commit is contained in:
1 parent
7124a02564
commit
25ddeb65d6
1791 files changed
+76990
-44452
No files matched your search
@@ -12,6 +12,8 @@
|
||||
namespace IPS\nexus;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
|
||||
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
@@ -523,6 +525,7 @@ class _Invoice extends \IPS\Patterns\ActiveRecord
|
||||
public function set_guest_data( $data )
|
||||
{
|
||||
$this->_data['guest_data'] = $data ? json_encode( $data ) : NULL;
|
||||
$this->_member = null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1769,10 +1772,15 @@ class _Invoice extends \IPS\Patterns\ActiveRecord
|
||||
|
||||
/* Find any billing agreements */
|
||||
$billingAgreement = NULL;
|
||||
|
||||
/* Turn off read/write separation so that we make sure to retrieve the latest records */
|
||||
$currentValue = \IPS\Db::i()->readWriteSeparation;
|
||||
\IPS\Db::i()->readWriteSeparation = false;
|
||||
foreach ( $this->transactions( array( \IPS\nexus\Transaction::STATUS_PAID, \IPS\nexus\Transaction::STATUS_PART_REFUNDED ), array( array( 't_billing_agreement IS NOT NULL' ) ) ) as $transaction )
|
||||
{
|
||||
$billingAgreement = $transaction->billing_agreement;
|
||||
}
|
||||
\IPS\Db::i()->readWriteSeparation = $currentValue;
|
||||
|
||||
/* Loop items */
|
||||
$purchases = array();
|
||||
|
||||
Reference in new issue
Block a user