diff --git a/fancybox/fancybox.php b/fancybox/fancybox.php index a0279914..3fb548b9 100644 --- a/fancybox/fancybox.php +++ b/fancybox/fancybox.php @@ -41,12 +41,14 @@ function fancybox_render(App $a, array &$b) } $html = $b['html']; while (preg_match($pattern, $html, $matches, PREG_OFFSET_CAPTURE)) { - if (is_array($matches)) $matches = $matches[0]; - $part = $matches[0]; + if (is_array($matches)) { + $matches = $matches[0]; + } + $part = $matches[0]; $replaced = str_replace('