Navigation Menu

Skip to content

Commit

Permalink
Syntax update for modern versions of PHP. See: wpsharks/s2member#1055
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswsinc committed Feb 22, 2017
1 parent 6c9071d commit 1b2a553
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/includes/classes/exports-simple-in.inc.php
Expand Up @@ -121,14 +121,14 @@ public static function export_users()

$custom_capabilities = trim($custom_capabilities, ',');

$custom = (isset($user->$s2map['custom'])) ? $user->$s2map['custom'] : '';
$subscr_id = (isset($user->$s2map['subscr_id'])) ? $user->$s2map['subscr_id'] : '';
$subscr_gateway = (isset($user->$s2map['subscr_gateway'])) ? $user->$s2map['subscr_gateway'] : '';
$custom = (isset($user->{$s2map['custom']})) ? $user->{$s2map['custom']} : '';
$subscr_id = (isset($user->{$s2map['subscr_id']})) ? $user->{$s2map['subscr_id']} : '';
$subscr_gateway = (isset($user->{$s2map['subscr_gateway']})) ? $user->{$s2map['subscr_gateway']} : '';

$auto_eot_time = (isset($user->$s2map['auto_eot_time'])) ? $user->$s2map['auto_eot_time'] : '';
$last_payment_time = (isset($user->$s2map['last_payment_time'])) ? $user->$s2map['last_payment_time'] : '';
$paid_registration_times = (isset($user->$s2map['paid_registration_times'])) ? $user->$s2map['paid_registration_times'] : array();
$custom_fields = (isset($user->$s2map['custom_fields']) && is_array($user->$s2map['custom_fields'])) ? $user->$s2map['custom_fields'] : array();
$auto_eot_time = (isset($user->{$s2map['auto_eot_time']})) ? $user->{$s2map['auto_eot_time']} : '';
$last_payment_time = (isset($user->{$s2map['last_payment_time']})) ? $user->{$s2map['last_payment_time']} : '';
$paid_registration_times = (isset($user->{$s2map['paid_registration_times']})) ? $user->{$s2map['paid_registration_times']} : array();
$custom_fields = (isset($user->{$s2map['custom_fields']}) && is_array($user->{$s2map['custom_fields']})) ? $user->{$s2map['custom_fields']} : array();

$paid_registration_date = (!empty($paid_registration_times['level'])) ? date('m/d/Y', $paid_registration_times['level']) : '';
$paid_registration_times = (!empty($paid_registration_times) && is_array($paid_registration_times)) ? serialize($paid_registration_times) : '';
Expand Down

0 comments on commit 1b2a553

Please sign in to comment.