| @@ -383,9 +383,9 @@ | ||
| 383 | 383 | * @return bool True if the LCP image is in the viewport of all device types, false otherwise. |
| 384 | 384 | */ |
| 385 | 385 | public function is_lcp_image_in_all_viewports( int $image_id ): bool { |
| 386 | 386 | foreach ( self::get_active_devices() as $device ) { |
| 387 | - if ( ( ( self::$current_profile_data[ $device ]['lcp']['type'] ?? '' ) === 'img' ) && ( self::$current_profile_data[ $device ]['lcp']['imageId'] === $image_id ) ) { | |
| 387 | + if ( ( ( self::$current_profile_data[ $device ]['lcp']['type'] ?? '' ) === 'img' ) && ( ( self::$current_profile_data[ $device ]['lcp']['imageId'] ?? null ) === $image_id ) ) { | |
| 388 | 388 | return true; |
| 389 | 389 | } |
| 390 | 390 | } |
| 391 | 391 | |