X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FAttach.php;h=b81c38762eb556c75b3bb119d5f0a12406431e29;hb=93380b8471164a8ed5d1d46e94d53bf37fe87cee;hp=8d91f90e954707d5be9a718ebbce08ea7192ec21;hpb=d09b3f5bdeae444f785f6283e55dbf2f61caadac;p=friendica.git diff --git a/src/Model/Attach.php b/src/Model/Attach.php index 8d91f90e95..b81c38762e 100644 --- a/src/Model/Attach.php +++ b/src/Model/Attach.php @@ -28,7 +28,7 @@ use Friendica\DI; use Friendica\Object\Image; use Friendica\Util\DateTimeFormat; use Friendica\Util\Mimetype; -use Friendica\Util\Security; +use Friendica\Security\Security; /** * Class to handle attach dabatase table @@ -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']]);