*/
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']]);