diff --git a/include/functions_images.inc.php b/include/functions_images.inc.php index 47291dc5..c17592fa 100644 --- a/include/functions_images.inc.php +++ b/include/functions_images.inc.php @@ -2252,7 +2252,7 @@ function serendipity_updateImageInEntries($id) { $pattern = "@(.*) src=[\"']([^'\"]+)[\"']@"; $callback = function($matches) use ($imageHTTPPath, $thumbnailHTTPPath) { - if (strpos(matches[2], "{$file['thumbnail_name']}.{$file['extension']}") === false) { + if (strpos($matches[2], "{$file['thumbnail_name']}.{$file['extension']}") === false) { // the image linked not to the thumbnail return "{$matches[1]} src='$imageHTTPPath'"; } else {