diff --git a/src/Modules/About_us.php b/src/Modules/About_us.php index ecb7b783..cfefb930 100644 --- a/src/Modules/About_us.php +++ b/src/Modules/About_us.php @@ -415,14 +415,13 @@ private function get_other_products_data() { } $api_data = $this->call_plugin_api( $slug ); - - if ( ! isset( $product['icon'] ) ) { + if ( ! isset( $product['icon'] ) && ( isset( $api_data->icons['2x'] ) || $api_data->icons['1x'] ) ) { $products[ $slug ]['icon'] = isset( $api_data->icons['2x'] ) ? $api_data->icons['2x'] : $api_data->icons['1x']; } - if ( ! isset( $product['description'] ) ) { + if ( ! isset( $product['description'] ) && isset( $api_data->short_description ) ) { $products[ $slug ]['description'] = $api_data->short_description; } - if ( ! isset( $product['name'] ) ) { + if ( ! isset( $product['name'] ) && isset( $api_data->name ) ) { $products[ $slug ]['name'] = $api_data->name; } }