From: Hypolite Petovan Date: Wed, 20 May 2020 22:28:04 +0000 (-0400) Subject: Fix wrong variable name in Model\Attach X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6fd13300cb51a59688ce50a2dff088e8ba07ddc6;p=friendica.git Fix wrong variable name in Model\Attach - Prevented attachment data from being retrieved from storage --- diff --git a/src/Model/Attach.php b/src/Model/Attach.php index 8d91f90e95..ad587e68bd 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']]);