diff --git a/update/common/scripts/5.4/fixtrashedimagereferences.php b/update/common/scripts/5.4/fixtrashedimagereferences.php index 832a88734a3..031b05b88c5 100644 --- a/update/common/scripts/5.4/fixtrashedimagereferences.php +++ b/update/common/scripts/5.4/fixtrashedimagereferences.php @@ -64,7 +64,7 @@ function fixupTrashedImageXml( $imageAttribute, $optDryRun ) eZCLI::instance()->notice( "Processing image $contentId ($version) ..." ); if ( ( $doc = simplexml_load_string( $imageAttribute['data_text'] ) ) === false ) - continue; + return; $doc['filename'] = ''; $doc['basename'] = '';