We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 122a8be + 1924423 commit ca507c3Copy full SHA for ca507c3
Plugin/AdaptivePixelRatioPlugin.php
@@ -68,7 +68,7 @@ public function beforeToHtml(Image $subject)
68
$srcSet = [];
69
$imageUrl = $subject->getData('image_url');
70
$pixelRatiosArray = $this->config->getImageOptimizationRatios();
71
- $glue = (strpos($imageUrl, '?') !== false) ? '&' : '?';
+ $glue = (strpos($imageUrl ?? '', '?') !== false) ? '&' : '?';
72
73
# Pixel ratios defaults are based on the table from https://mydevice.io/devices/
74
# Bulk of devices are 2x however many new devices like Samsung S8, iPhone X etc are 3x and 4x
0 commit comments