diff --git a/mu-plugins/utilities/class-helpscout.php b/mu-plugins/utilities/class-helpscout.php index 244f77b25..a62d8f812 100644 --- a/mu-plugins/utilities/class-helpscout.php +++ b/mu-plugins/utilities/class-helpscout.php @@ -123,12 +123,8 @@ public function get_paged( $url, $args = null ) { while ( ! empty( $api->_links->next->href ) ) { $api = $this->get( $api->_links->next->href ); - if ( is_array( $api->_embedded ) ) { - - } else { - foreach ( $api->_embedded as $field => $value ) { - $response->_embedded->$field = array_merge( $response->_embedded->$field, $value ); - } + foreach ( $api->_embedded as $field => $value ) { + $response->_embedded->$field = array_merge( $response->_embedded->$field, $value ); } }