]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Attach.php
Merge pull request #9146 from tobiasd/2020.09-CHANGELOG
[friendica.git] / src / Model / Attach.php
index 8d91f90e954707d5be9a718ebbce08ea7192ec21..ad587e68bdcac6362069cd74090478f7d3d31707 100644 (file)
@@ -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']]);