]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong variable name in Model\Attach
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 20 May 2020 22:28:04 +0000 (18:28 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 20 May 2020 22:28:14 +0000 (18:28 -0400)
- Prevented attachment data from being retrieved from storage

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