Skip to content

Commit 689a0ac

Browse files
author
Marek Szymczuk
committed
Cast exposure time to float
1 parent eb5a528 commit 689a0ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/PHPExif/Exif.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ public function getExposureMilliseconds()
346346
return false;
347347
}
348348

349-
if (is_float($this->data[self::EXPOSURE])) {
350-
return $this->data[self::EXPOSURE];
349+
if (is_numeric($this->data[self::EXPOSURE])) {
350+
return $this->data[self::EXPOSURE] + 0;
351351
}
352352

353353
$exposureParts = explode('/', $this->data[self::EXPOSURE]);

0 commit comments

Comments
 (0)