Trim on exif model and make (#136)

This commit is contained in:
Tobias Reich 2014-04-25 16:36:31 +02:00
parent 543381a24d
commit 8e711cde87

View File

@ -460,10 +460,10 @@ class Photo extends Module {
if (isset($temp)) $return['aperture'] = $temp; if (isset($temp)) $return['aperture'] = $temp;
$temp = @$exif['Make']; $temp = @$exif['Make'];
if (isset($temp)) $return['make'] = $exif['Make']; if (isset($temp)) $return['make'] = trim($temp);
$temp = @$exif['Model']; $temp = @$exif['Model'];
if (isset($temp)) $return['model'] = $temp; if (isset($temp)) $return['model'] = trim($temp);
$temp = @$exif['ExposureTime']; $temp = @$exif['ExposureTime'];
if (isset($temp)) $return['shutter'] = $exif['ExposureTime'] . ' Sec.'; if (isset($temp)) $return['shutter'] = $exif['ExposureTime'] . ' Sec.';