From 1d8dd949dcc07312cd741d517f6d852fc8def60a Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Tue, 8 Sep 2020 22:50:59 +0200 Subject: Update photo_driver.php --- include/photo/photo_driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index f5cc6a2c9..495008a22 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -312,7 +312,7 @@ function import_xchan_photo($photo, $xchan, $thing = false, $force = false) { 'photo_usage' => $flags, 'imgscale' => 4, 'edited' => $modified, - 'description' => ($hdrs['etag'] ? $hdrs['etag'] : ''), + 'description' => (array_key_exists('etag', $hdrs) ? $hdrs['etag'] : ''), 'expires' => gmdate('Y-m-d H:i:s', (isset($expires) ? $expires : time() + 86400)) ]; -- cgit v1.2.3