From 8e711cde8792d89fa3a38467459a41d4cc87c437 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Fri, 25 Apr 2014 16:36:31 +0200 Subject: [PATCH] Trim on exif model and make (#136) --- php/modules/Photo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/modules/Photo.php b/php/modules/Photo.php index e2d1155..ade0c7e 100755 --- a/php/modules/Photo.php +++ b/php/modules/Photo.php @@ -460,10 +460,10 @@ class Photo extends Module { if (isset($temp)) $return['aperture'] = $temp; $temp = @$exif['Make']; - if (isset($temp)) $return['make'] = $exif['Make']; + if (isset($temp)) $return['make'] = trim($temp); $temp = @$exif['Model']; - if (isset($temp)) $return['model'] = $temp; + if (isset($temp)) $return['model'] = trim($temp); $temp = @$exif['ExposureTime']; if (isset($temp)) $return['shutter'] = $exif['ExposureTime'] . ' Sec.';