diff --git a/includes/class-ecwid-admin-main-page.php b/includes/class-ecwid-admin-main-page.php index 915e6b12..e43c572a 100644 --- a/includes/class-ecwid-admin-main-page.php +++ b/includes/class-ecwid-admin-main-page.php @@ -146,7 +146,7 @@ public function _do_integrated_admin_page( $page = self::PAGE_HASH_DASHBOARD ) { $result = $request->do_request( array( 'timeout' => 20 ) ); }//end if - if ( $result['code'] == 403 ) { + if ( ! empty( $result ) && $result['code'] == 403 ) { Ecwid_Api_V3::save_token( '' ); } diff --git a/templates/debug.php b/templates/debug.php index 38933cbb..afb2aa0a 100644 --- a/templates/debug.php +++ b/templates/debug.php @@ -78,6 +78,22 @@
+ +
+ + +