From 1152445f1758f35b6191b70282a18061aadccf04 Mon Sep 17 00:00:00 2001 From: Michael Beckwith Date: Mon, 13 Jul 2026 08:43:48 -0500 Subject: [PATCH] remove object casting in favor of original array --- includes/class-connect.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/class-connect.php b/includes/class-connect.php index be1bd056..0f1c6e0b 100644 --- a/includes/class-connect.php +++ b/includes/class-connect.php @@ -177,14 +177,14 @@ public function admin_page_display() { $account = false; try { - $account = (object) constant_contact()->get_api()->get_account_info(); + $account = constant_contact()->get_api()->get_account_info(); if ( $account ) { $name = ''; - if ( ! empty( $account->first_name ) ) { - $name .= $account->first_name; + if ( ! empty( $account['first_name'] ) ) { + $name .= $account['first_name']; } - if ( ! empty( $account->last_name ) ) { - $name .= $account->last_name; + if ( ! empty( $account['last_name'] ) ) { + $name .= $account['last_name']; } echo esc_html( $name ); } @@ -201,7 +201,7 @@ public function admin_page_display() {

contact_email ) . '">' . esc_html( $account->contact_email ) . ''; + echo '' . esc_html( $account['contact_email'] ) . ''; } ?>