From fc467441837719e117a43987290b9739d279a9dd Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 5 Sep 2021 19:05:19 +0200 Subject: [PATCH] Fix Photo::delete() --- src/Model/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 039fee779a..c09434d7f2 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -413,7 +413,7 @@ class Photo while ($photo = DBA::fetch($photos)) { try { $backend_class = DI::storageManager()->getWritableStorageByName($photo['backend-class'] ?? ''); - $backend_class->delete($item['backend-ref'] ?? ''); + $backend_class->delete($photo['backend-ref'] ?? ''); // Delete the photos after they had been deleted successfully DBA::delete("photo", ['id' => $photo['id']]); } catch (InvalidClassStorageException $storageException) {