From b1355835815c54089e9a7b47954e0278c3881b17 Mon Sep 17 00:00:00 2001 From: David Windell Date: Wed, 15 Dec 2021 14:14:09 +0000 Subject: [PATCH] Skip sync if storage is not enabled --- Model/File/Storage/Synchronization.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Model/File/Storage/Synchronization.php b/Model/File/Storage/Synchronization.php index c9c0bf5..1a63b23 100644 --- a/Model/File/Storage/Synchronization.php +++ b/Model/File/Storage/Synchronization.php @@ -37,6 +37,11 @@ public function synchronize($relativeFileName) { /** @var $storage Bucket */ $storage = $this->storageFactory->create(); + + if (!$storage->getStorage()->isEnabled()) { + return; + } + try { $storage->loadByFilename($relativeFileName); } catch (\Exception $e) {