diff options
author | Max Kostikov <max@kostikov.co> | 2020-09-08 22:50:59 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2020-09-08 22:50:59 +0200 |
commit | 1d8dd949dcc07312cd741d517f6d852fc8def60a (patch) | |
tree | 32d96ae7747acf90a03133606716954e84cf9ac9 | |
parent | 9dd333a2f4320efbf5167a73bf53462c2299d654 (diff) | |
download | volse-hubzilla-1d8dd949dcc07312cd741d517f6d852fc8def60a.tar.gz volse-hubzilla-1d8dd949dcc07312cd741d517f6d852fc8def60a.tar.bz2 volse-hubzilla-1d8dd949dcc07312cd741d517f6d852fc8def60a.zip |
Update photo_driver.php
-rw-r--r-- | include/photo/photo_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
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)) ]; |