aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/photo/photo_driver.php2
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))
];