From: Steve Sutton Date: Thu, 16 May 2019 18:59:04 +0000 (-0400) Subject: Fix array of state X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=af81fc3506af12f1e09d19d0a2f9e58b936565ce;p=WP-Plugins%2Fglm-member-db-billing.git Fix array of state should output state.value --- diff --git a/lib/GlmPDFLabel.php b/lib/GlmPDFLabel.php index 9cbf2b6..884edef 100644 --- a/lib/GlmPDFLabel.php +++ b/lib/GlmPDFLabel.php @@ -58,6 +58,7 @@ class GlmPDFLabel extends Cezpdf $columnCount = 0; $rowCount = 0; foreach ( $accounts as $account ) { + // echo '
$account: ' . print_r( $account, true ) . '
'; // $account = $invData['account']; $columnCount++; $colName = ( $columnCount % 2 == 0 ) ? 'col2' : 'col1'; @@ -76,7 +77,7 @@ class GlmPDFLabel extends Cezpdf ''.$account['ref_name'].'', $addressLine, $account['billing_city'], - $account['billing_state'], + $account['billing_state']['value'], $account['billing_zip'] ); if ( $columnCount % 2 == 0 ) {