Skip to content

Commit

Permalink
test #89: Make sure function exists before calling it
Browse files Browse the repository at this point in the history
  • Loading branch information
ercanozkaya committed Oct 4, 2016
1 parent bda5a41 commit 51d5a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapter/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ public function write($data)

public function readExifData()
{
if ($this->_handle->isReadable()) {
if ($this->_handle->isReadable() && function_exists('exif_read_data')) {
return @exif_read_data($this->_path, null);
}

return;
return null;
}

public function exists()
Expand Down

0 comments on commit 51d5a2e

Please sign in to comment.