tw: fix buid access (fix #849)

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/807/merge
Varun Patil 2023-10-07 10:40:38 -07:00
parent 2252100d29
commit 1ca9aac7d6
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class TimelineWrite
$liveid = $this->livePhoto->getLivePhotoId($file, $exif);
// Get BUID from ImageUniqueId if not present
$buid = $prevRow['buid'];
$buid = $prevRow ? $prevRow['buid'] : '';
if (empty($buid)) {
$imageUniqueId = \array_key_exists('ImageUniqueID', $exif) ? $exif['ImageUniqueID'] : null;
$buid = Exif::getBUID($file->getName(), $imageUniqueId, $file->getSize());