From 86ee5d03cd6c8f3208a92887e72d11954014d9d0 Mon Sep 17 00:00:00 2001 From: Ole Morten Halvorsen Date: Tue, 5 Jun 2018 16:00:39 +0200 Subject: [PATCH] Fixed fatal error `continue` used outside of loop. --- update/common/scripts/5.4/fixtrashedimagereferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] = '';