diff --git a/src/Model/Attach.php b/src/Model/Attach.php index 8d91f90e9..ad587e68b 100644 --- a/src/Model/Attach.php +++ b/src/Model/Attach.php @@ -159,7 +159,7 @@ class Attach */ public static function getData($item) { - $backendClass = DI::storageManager()->getByName($photo['backend-class'] ?? ''); + $backendClass = DI::storageManager()->getByName($item['backend-class'] ?? ''); if ($backendClass === null) { // legacy data storage in 'data' column $i = self::selectFirst(['data'], ['id' => $item['id']]);