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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
himiklab committed Nov 2, 2017
1 parent 1c3461d commit 1660151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EasyThumbnail.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class EasyThumbnail extends Object
public $cacheExpire = 0;

/** @var integer */
public $grabberType = self::GRABBER_CURL;
public $grabberType = self::GRABBER_PHP;

public function init()
{
Expand Down
2 changes: 1 addition & 1 deletion EasyThumbnailImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ protected static function fileFromUrlDate($url)
}
stream_context_set_default($streamContextDefaults);

return $headers['Last-Modified'] ?? '';
return isset($headers['Last-Modified']) ? $headers['Last-Modified'] : '';
}

// curl
Expand Down

0 comments on commit 1660151

Please sign in to comment.