Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Commit

Permalink
Remove exif exception
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Aug 22, 2013
1 parent 019bb31 commit 6adb34f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Transit/File.php
Expand Up @@ -164,11 +164,10 @@ public function dir() {
*
* @param array $fields
* @returns array
* @throws \RuntimeException
*/
public function exif(array $fields = array()) {
if (!function_exists('exif_read_data')) {
throw new RuntimeException('Reading exif data requires the exif module');
return array();
}

return $this->_cache(__FUNCTION__, function($file) use ($fields) {
Expand Down

0 comments on commit 6adb34f

Please sign in to comment.