From ce78d81d7756697523c3ead88b1f162bef497ba4 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 4 Oct 2023 15:34:15 -0700 Subject: [PATCH] exif: fix buid definition Signed-off-by: Varun Patil --- lib/Exif.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Exif.php b/lib/Exif.php index 8262171a..904f10b9 100644 --- a/lib/Exif.php +++ b/lib/Exif.php @@ -274,12 +274,12 @@ class Exif */ public static function getBUID(string $basename, $imageUniqueID, int $size): string { - $imageUniqueID = "size={$size}"; - if (null === $imageUniqueID || \strlen((string) $imageUniqueID) < 4) { - $imageUniqueID = "iuid={$imageUniqueID}"; + $sfx = "size={$size}"; + if (null !== $imageUniqueID && \strlen((string) $imageUniqueID) >= 4) { + $sfx = "iuid={$imageUniqueID}"; } - return md5($basename.$imageUniqueID); + return md5($basename.$sfx); } /**