diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php index 2368f64a5..3855dfdf4 100755 --- a/forms/HtmlEditorField.php +++ b/forms/HtmlEditorField.php @@ -235,8 +235,8 @@ function HtmlEditorField_dataValue_processImage($parts) { // If we have an image, insert the resampled one into the src attribute; otherwise, leave the img src alone. if($image && $image->getWidth() != $width && $image->getHeight != $height) { // If we have an image, generate the resized image. - $resizedImage = $image->getFormattedImage("ResizedImage",$width, $height); - $parts[$partSource['src="']] = $resizedImage->getRelativePath() ; + $resizedImage = $image->getFormattedImage('ResizedImage', $width, $height); + if($resizedImage) $parts[$partSource['src="']] = $resizedImage->getRelativePath(); } $parts[0] = "";